-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
migrate Offline challenge to offline first with React Query #227
Comments
One thing to mention: the experimental persister only detects and deletes old cache entries when the keys are accessed . This can lead to a lot of stale persisted data. I haven't finished it yet, but I am planning to add a tiny storage lookup on boot and remove data that is older than (3)/n days or something like that. The issue is known and reported by me but unsolved for now |
Here is my stale data remover https://gist.github.com/hirbod/bc1538990d1b47419c3cb1f6622f7625 |
@hirbod thanks! |
Thanks to @hirbod i randomly landed on this tweet.
we should use
tanstack-query
withquery-async-storage-persister
as a dev,
I can improve my knowledge of offline first app,
so that I can use
@tanstack/query-async-storage-persister
StarshipCard
>handleBuy
to return<Text>payment in process</Text>
Netinfo
query-async-storage-persister
StarshipCard
dataReferences:
The text was updated successfully, but these errors were encountered: