You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
migrate Offline challenge to offline first with React Query #227
Then you just pass it globally to the queryClient defaults as persister and you also need to pass it individually for every infiniteQuery, as the global setting does not work for infiniteQueries. Types also broken, but it works.
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
Thanks to @hirbod i randomly landed on this tweet.
we should use
tanstack-querywithquery-async-storage-persisteras a dev,
I can improve my knowledge of offline first app,
so that I can use
@tanstack/query-async-storage-persisterStarshipCard>handleBuyto return<Text>payment in process</Text>Netinfoquery-async-storage-persisterStarshipCarddataReferences: