Skip to content
Discussion options

You must be logged in to vote

This is due to a React hydration problem:

  • SSR renders width 300px
  • React renders on the client but rendered DOM does not match SSR DOM => there are some weird style offsets and your width 300px is applied to a paragraph a bit under
  • Navigation fixes it, as React is able to apply width 300px as it's supposed to be

I can't tell exactly why this hydration problem happens. It is possible that it is a bug in React, or that you have some elements in your DOM tree that produce a mismatch and this mess things up for React. I'd particularly look for React components rendered on that specific doc that have different outputs for server-side-rendering vs client-side-rendering.

See also https://www.j…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@matkoch
Comment options

Answer selected by matkoch
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