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
I'm currently working on app with PWA that needs to support offline access to data using TanStack Query. I’ve already set up a persister, but I’m unsure about the best practices for configuring it to ensure that all necessary queries are available offline — especially for use cases where a user might open the app the next day without internet access and still expect full functionality.
A few specific questions I have:
How should I configure the persister to ensure that queries are properly saved and restored across sessions?
Is there a recommended way to manually prefetch and persist queries, so that I can ensure certain data is available offline ahead of time?
Are there any common pitfalls or limitations I should be aware of when using TanStack Query in offline-first scenarios?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently working on app with PWA that needs to support offline access to data using TanStack Query. I’ve already set up a persister, but I’m unsure about the best practices for configuring it to ensure that all necessary queries are available offline — especially for use cases where a user might open the app the next day without internet access and still expect full functionality.
A few specific questions I have:
Beta Was this translation helpful? Give feedback.
All reactions