This repository has been archived by the owner on Dec 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 303
Support for partial fetches (for paginated APIs) #366
Comments
Hi, I don't have anything that is refined enough to add to Store yet but I've been working on a pagination setup for work myself. Rather than having
Since the persister will cache pages I already loaded, rotation allows me to start on page1 again and load from disk rather than network the 2nd time. Hope it helps :-) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Looking at the Fetcher interface, I'm wondering if there's been any consideration around supporting paginated APIs and provided some kind of param to fetcher based on what data is already saved in the disk cache (e.g., last updated timestamp)?
The kind of use case I'm thinking about if we are fetching some long list of events ordered by one of the response object's field (e.g., some timestamp) and there are lots of entries already on disk and we only want to ask the remote data source for the ones newer than the one we already have saved on the Android device.
The text was updated successfully, but these errors were encountered: