Skip to content
Discussion options

You must be logged in to vote

I don't believe it does. But it does do prefix matching. So let's say you have two query keys:

key1 = ['pages', 'foo']
key2 = ['pages', 'bar']

Then you can invalidate all pages with:

client.invalidateQueries({ queryKey: ['pages'] });

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TkDodo
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
Converted from issue

This discussion was converted from issue #10612 on April 30, 2026 06:41.