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.

--

--

Open Sourcer

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

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adam Hurwitz

Adam Hurwitz

Open Sourcer

More from Medium

Goldilocks and the Dopamine effect

Perspective….

HELP ME LOVE YOU