When to use queryCache.clear() vs queryCache.refetchQueries() #1215
Unanswered
transmissions11
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.
-
When should I be using
queryCache.clear()
vsqueryCache.refetchQueries()
?Does
queryCache.clear()
just clear the cache or refetch as well?If I have a user switch accounts, should I run both
queryCache.refetchQueries()
andqueryCache.clear()
or just one or the other?Beta Was this translation helpful? Give feedback.
All reactions