Skip to content

How to load mutable properties during initialization? #79960

Answered by icyJoseph
bbhxwl asked this question in Help
Discussion options

You must be logged in to vote

I think you are maybe missing the concept of Hydration. The Client Components should be included into the HTML sent by the server.

JavaScript is also downloaded, and roughly speaking, hydration happens, by walking the tree, replaying the JavaScript, to know where to attach event handlers and what not. If there's a mismatch here, the dreaded hydration error is triggered. Then the JavaScript for effects, is run, and then React goes basically dormant, until state updates happen.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@bbhxwl
Comment options

@icyJoseph
Comment options

@bbhxwl
Comment options

@icyJoseph
Comment options

Answer selected by bbhxwl
@bbhxwl
Comment options

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