Does invalidateQueries method accept a list of keys? #1950
Answered
by
TkDodo
vineetdigit
asked this question in
Q&A
-
It appears that I can't pass multiple keys to
Can someone confirm that this is the expected behavior? To work around, I'm calling
|
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Mar 12, 2021
Replies: 1 comment
-
it does not. it excepts one key, which will be fuzzily matched against the cache. see: https://react-query.tanstack.com/guides/query-invalidation#query-matching-with-invalidatequeries |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vineetdigit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it does not.
it excepts one key, which will be fuzzily matched against the cache. see: https://react-query.tanstack.com/guides/query-invalidation#query-matching-with-invalidatequeries