Next.js Discord

Discord Forum

Does Next.js 14 not support passing children in layouts on hydration anymore??

Unanswered
Sloth bear posted this in #help-forum
Open in Discord
Sloth bearOP
My layout routes and specifically passing children from an RSC Layout Component to a Client Layout Component behave differently in Next.js 14

The server rendered HTML is fine, the error and apparent loss of the children prop only seems to happen during hydration.

See fs routing folder structure in screenshots:

This worked fine in Next.js 13 so far, any idea why it's going wrong in the new version?

PR with changes:
https://github.com/codinsonn/codinsonn.dev/pull/51

0 Replies