TanStackT
TanStack4y ago
1 reply
urgent-maroon

Error No QueryClient set error on useMutation Custom Hook

I have a QueryClientProvider wrapping the whole application at the root and parts of the app that use custom useQuery hooks are working fine.

When I go to a page in the app that a custom useMutation hook the page does not render and I get this error in the console log.

Not sure what I can do to get around this error. any suggestions?
Was this page helpful?