Refetch persistQueryClient when there is internet connection #2508
Unanswered
francochau
asked this question in
Q&A
Replies: 0 comments
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.
-
I have to set cache and stale time to infinity in order to achieve offline caching.
However, it prevented refetching new data when there is connection.
Is there any way to set the stale time base on the connection,
or return cached data on error?
Beta Was this translation helpful? Give feedback.
All reactions