Replies: 1 comment 6 replies
-
I'm still processing your exact setup and why you would be receiving the error server side but the first thing that comes to mind to try would be the following: Further down in the documentation you linked there is a Streaming with Server Components section which gives an example of extracting the creation of the Though you may already be doing this, when you say I'm a little stumped on why you would be receiving this error on the server side unless you weren't creating a new QueryClient instance that you are passing to the Hydration Boundary in page.tsx. If none of these suggestion work can you post your page.tsx code and the exact error on the server? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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:
HydrationBoundary
topage.tsx
and passingqueryClient
to itInvolved files hirearchy in a monorepo set-up:
Beta Was this translation helpful? Give feedback.
All reactions