TanStackT
TanStack4y ago
3 replies
full-green

Error No QueryClient set, use QueryClientProvider to set one

We created a Next.js App and wanted to use the generated function from the backend. To generate the functions we use orval and they are published in a npm repository as we don't use a monorepo. But now we are getting this Error, but we added the QueryClient to the _app.tsx.

Here is the example where the error can be reproduced: https://github.com/schoolutilities/react-query-example

Has anyone an idea why this error occurs?
GitHub
Contribute to schoolutilities/react-query-example development by creating an account on GitHub.
GitHub - schoolutilities/react-query-example
Was this page helpful?