I am using a monorepo. In one package I have my web-app build with next.
In another one all my react-query hooks.
When I import the hooks from the library into Next.js I get the following error:
error - node_modules/@company-libs/queries/node_modules/@tanstack/react-query/build/lib/QueryClientProvider.mjs (34:0) @ useQueryClient
error - Error: No QueryClient set, use QueryClientProvider to set one
```
The repo is here: https://github.com/kevinmamaqi/react-query-next-js
Next.js App has the QueryProvider as specified in the docs.
Any ideas please? - I've tried many combinations and it doesn't seem to work.