Using Paging3 + RemoteMediator + Room, I am paging in a list from BE. Each item can have a “like” - that would be stored locally (only). What is the best way to reflect change in UI when one row changes like status? Updating the row in db, causing Paging invalidation, submitting all again to the UI (LazyColumn) seems heavyweight.
I'd also suggest to be wary of premature optimization here, updating the db as your source of truth and letting the UI flow downstream is still pretty performant and may save you dev time in the future
Seri
01/30/2025, 4:07 PM
i have a very similar case in our app with pages of 1000+ items and am storing the Bookmarked flag inside the db. It isn't creating any perceptible lag