refetching isnt working
It doesnt work with useMutation also, where is my mistake, what im doing wrong
3 Replies
other-emerald•14mo ago
Try separating these out per cache key.
queryClient.invalidateQueries({ queryKey: ['usersWithHoldings']})
queryClient.invalidateQueries({ queryKey: ['userHoldings']})
The queryKey array is meant to be a combination, not seperate cache values.
sunny-greenOP•14mo ago
I've done that too and it isn't working
correct-apricot•14mo ago
Where is queryClient from? useQueryClient?