Skip to content

Why does __NEXT_DATA__ exists? #15117

Locked Answered by jamesmosier
jensmeindertsma asked this question in Help
Discussion options

You must be logged in to vote

That is used so Next (well, React) knows what data you want to hydrate on your page during server side rendering. Otherwise the server would not know what data to use to populate your React components. The page needs to get the data from somewhere and the DOM makes the most sense for any server rendered JavaScript application.

Replies: 2 comments 12 replies

Comment options

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

@jensmeindertsma
Comment options

@arunoda
Comment options

@jensmeindertsma
Comment options

@richardthombs
Comment options

Answer selected by jensmeindertsma
Comment options

You must be logged in to vote
7 replies
@richardthombs
Comment options

@samfromaway
Comment options

@samfromaway
Comment options

@richardthombs
Comment options

@samfromaway
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
7 participants