Stop Calling notifyDataSetChanged: Room Flow and Lifecycle-Aware UI State
Room DAOs returning Flow eliminate manual refresh calls by re-querying on table changes. Here is how to wire StateFlow and stateIn into your ViewModel without stale UI bugs.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Room DAOs returning Flow eliminate manual refresh calls by re-querying on table changes. Here is how to wire StateFlow and stateIn into your ViewModel without stale UI bugs.
A big List kills feed performance. Here's how to stream Room data with Paging 3 and LazyColumn, plus the invalidation and placeholder trade-offs you need to know.
Room can return a PagingSource directly from a DAO, and Paging 3 handles the incremental loading, diffing, and invalidation. Here's the minimal wiring, the cachedIn gotcha, and how to verify it.