I'm using Android Jetpack's new Paging library to display a list of items received from the API. I want the data on the current page(say page 3) to be refreshed every few minutes without refreshing the whole list with invalidate() function, as this is taking the Recycler view to its first page.
The problem I see here is the Paging library assumes the data is immutable.
https://developer.android.com/reference/android/arch/paging/DataSource#updating-paged-data
On googling, I can see the workaround is to use Room and display the UI based on DB updates from the API call.
Is there any other suggestions to solve this without using a local store.