I was following https://github.com/googlesamples/android-architecture-components/tree/master/PagingWithNetworkSample I noticed when paging refreshes, swipe to refresh, invalidate() is called and it calls loadInitial which then loads new list. So if I called refresh again and again it always downloads initial data. For me I want to refresh page by passing previous key and then update when only new items available. But this use case doesn't seem to be supported by paging library now.
Asked
Active
Viewed 2,732 times
3

Phantômaxx
- 37,901
- 21
- 84
- 115

om252345
- 2,395
- 4
- 29
- 31
-
see [DataSource](https://developer.android.com/reference/android/arch/paging/DataSource), `Updating Paged Data` section in particular – pskink May 30 '18 at 13:59
-
Are you using paging library with room? – Keivan Esbati Jun 27 '18 at 10:48
-
@pskink The commented document seems to be deprecated now. – shoheikawano Dec 12 '19 at 13:39