Getting type error when using string to invalidate queries
Hey,
I am following the invalidation query docs to invalidate all queries with the term
I 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
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