Getting type error when using string to invalidate queries. #5788
Unanswered
bombillazo
asked this question in
Q&A
Replies: 1 comment 8 replies
-
try doing |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I am following the invalidation query docs to invalidate all queries with the term
rates
as the first element in the query key array by usingI am using the useQueryClient hook to get the queryClient.
This clears the queries I want to clear, but I am getting a type error when I use the string:
if I try putting it in an array:
the type error goes away but the query invalidation does not work. How can i fix this? Thanks
Beta Was this translation helpful? Give feedback.
All reactions