Can you pass a QueryClient directly to useQuery instead of using a QueryClientProvider
Is something like the following possible or do you need a global QueryClientProvider?
1 Reply
unwilling-turquoise•3y ago
yes, you can in v5
but if you don't use a Provider anywhere, you need to setup calls to
queryClient.mount() and unmount() yourself