Open PixelsCommander opened 4 months ago
@PixelsCommander
- Create fresh project with 2.0.9
- Add page under src/pages/record/[userId].tsx
- Add useMutation there
you are using both app
and pages
directory, is the _app.tsx
file wrapped with the withBlitz
wrapper?
What is the problem?
I am using version 2.0.9 with AppRouter and auth. I tried to install from scratch 2 times and every time I get the same result.
I create src/pages/record/[userId].tsx where I call useMutation as following. It is expected that it just works. Instead, I am getting errors Error: No QueryClient set, use QueryClientProvider to set one
this results in
Paste all your error logs here:
Paste all relevant code snippets here:
What are detailed steps to reproduce this?
Run
blitz -v
and paste the output here:Please include below any other applicable logs and screenshots that show your problem:
No response