When invalidate() is called here this will update the entire DataSource causing the PagedList to reload. Have you figured out a way to only reload the specific cell in the PagedList?

I have built a custom Firestore based DataSource. The only way to load a portion of the data without invalidating all of the data and having the UI flash / reload seems to be via integrating with Google’s Room ORM library. Unfortunately, this will cache my data twice, once with Firestore, and again with Room which is unnecessary, but better than reloading the entire PagedList.

See the documentation under Consider How Content Updates Work: If you’re loading data directly from a Room database updates get pushed to your app’s UI automatically.

DeFi Punk

Love podcasts or audiobooks? Learn on the go with our new app.