Error: No QueryClient set in Next.js App Router despite following Advanced SSR guide.
I'm trying to set up React Query in Next.js app router in my NPM workspace. I'm following the official documentation on how to do so.
Providers Setup
The problematic component is this one:
SearchFilters is a child node of a server component page.
Error (happens on server side):
Error: No QueryClient set occurs in SearchFilters despite being wrapped in Providers.
Troubleshooting done:
- multiple react query versions -> they are all the same
- different react versions -> same in every package/app
- adding HydrationBoundary to page.tsx and passing queryClient to it1 Reply
correct-apricotOP•10mo ago
Involved files hirearchy in a monorepo set-up: