useUtils vs useQueryClient
I'm trying to use the
Am I doing something wrong?
useUtils hook but I'm unsure if I'm doing it correctly? It doesn't seem to work but using useQueryClient does. Here is some code:Am I doing something wrong?
Solution
Make sure you only have 1 of each QueryClient and trpcClient client in your react tree, kind of sounds like useUtils is getting hooked up to the wrong client