-
|
Any help with this would be HUGELY appreciated. I've been super blocked by this 🙏 thank you! I'm trying to get SSR to work with next. I've been able to follow the official next example and everything works ok until I add a hook into the mix. For our app we—effectively—need make a call to This is the error I'm getting:
To replicate
This is a the cloned next example. I've just added a Please would anyone be able to help, thank you so much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
For the render done by Two workarounds are possible:
|
Beta Was this translation helpful? Give feedback.

Yes, that is possible, but you'd have to make sure your entire app is renderable when you pass it to getServerState, and thus has no calls to useQuery for example.
What you could do, to still ensure everything working with both the global setup and app to find the server state, is to split up into two different components: