when do query keys "match fuzzily" #3316
Replies: 2 comments 1 reply
-
I'm definitely up for making that page better, but I also don't understand your example when you say "these two will:
which of these is the cache key, and which is the thing you pass to e.g. invalidateQueries? Because that makes a big difference 😅 |
Beta Was this translation helpful? Give feedback.
-
okay so arrays have an order, which means that when you invalidate with If you have the two keys as you showed:
invalidating
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
the docs on how query keys are matched in methods like
invalidateQueries
are not very clear to me. what exactly does "fuzzy matching" mean in this context?for example, the following two keys will not match:
but these two will:
could someone please clarify? thanks!
Beta Was this translation helpful? Give feedback.
All reactions