Skip to content
Discussion options

You must be logged in to vote

It's not a bug per se and also not specific to Gatsby as it can happen on every platform that generates HTML/CSS/JS and then rehydrates that content on the client (Rehydration). Somewhere in your code you could e.g. make the assumption that the window element exists and then during gatsby build that part will be undefined and your HTML will be different than what on the client will be rendered.

You could give this a read and check your code afterwards: https://www.joshwcomeau.com/react/the-perils-of-rehydration/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@omar-shahid
Comment options

Answer selected by omar-shahid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #31666 on June 04, 2021 06:19.