Skip to content
Discussion options

You must be logged in to vote

The problem is that header is rendered before children. That means on the client, when header renders, the HydrationBoundary has not yet put data in the cache.

if you change the order:

<Providers>
  {children}
  {header}
</Providers>

it’ll work. I think that’s expected, as the HydrationBoundary is the one that actually sends data to the client.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vitminakov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants