TanStackT
TanStack4y ago
7 replies
sad-indigo

Reset many queries

Hello,

I have queries that are built like the example below:
useQuery(['skills', 'stats'], ...);
useQuery(['badges', 'stats'], ...);

I'm trying to refetch all these two queries at once with:
queryClient.refetchQueries({ queryKey: ['stats'], type: 'all' });

But it's not working. Did I understand something wrong?
Was this page helpful?