3

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.

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
om252345
  • 2,395
  • 4
  • 29
  • 31

0 Answers0