Skip to content

invalidateQueries behaviour #7327

Answered by TkDodo
Slmii asked this question in Q&A
Discussion options

You must be logged in to vote

yes, because invalidation will:

  • refetch all active / currently used queries
  • will mark all other (inactive) queries as stale so that they can be refetched the next type they are used.

if you want to always refetch, use refetchQueries instead

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Slmii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants