Does 'queryClient.clear()' not valid with 'staleTime: Infinity'? #5206
Answered
by
louis-young
vaynevayne
asked this question in
Q&A
-
I have configured useQuery with staleTime infinity. When I log out and log back in, the page still uses the previous data and its isFetching seems to be false. "@tanstack/react-query": "^4.19.1", |
Beta Was this translation helpful? Give feedback.
Answered by
louis-young
Mar 31, 2023
Replies: 1 comment
-
Hi 👋 It should clear all of the connected caches and therefore remove all query data from the cache. Please could you provide a minimal reproduction so I can take a look? |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
louis-young
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi 👋
It should clear all of the connected caches and therefore remove all query data from the cache.
Please could you provide a minimal reproduction so I can take a look?