Making prefetch run at intervals #62
Closed
tekkenking
started this conversation in
Ideas
Replies: 1 comment
-
Hello, starting with v4.22.0, there are 2 new API's available exactly for this purpose. Optionally, you can also use the API method If you are using localStorage to store suggestions, then I would suggest using a library like localstorage-slim to set a time at which data would expire from the localStorage. Hope that helps. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Thank you for the incredible work.
Here is a situation. An inventory platform; that can be accessed via mobile app and web platform simultaneously, because of this the inventory quantity can be updated by either platform.
Prefetch got the inventory data and saved them locally (cache or local storage), then a few mins later the mobile app reduced the quantity, and the locally fetched data through Prefetch would hold the stale quantity until (I don't know when).
So If a Prefetch has the option of "interval" it would just refresh the data from the remote at a certain interval.
Beta Was this translation helpful? Give feedback.
All reactions