Replies: 1 comment 1 reply
-
use |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hello! I'm trying out the persistedQueryClient on v3. Basically I need to cache and persist some data when page is refreshed but removed when the tab/browser is closed.
With queryClient.clear(); or removeQueries(), there are still queries in the local storage. The only way worked for me was localStorage.removeItem("REACT_QUERY_OFFLINE_CACHE"); but that's not ideal.
Is there a better way to handle this? Or is there already a fix included in a higher version?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions