Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next.js SSR Hydration with Children #447

Merged
merged 3 commits into from
Aug 20, 2024

Conversation

christian-bromann
Copy link
Member

@christian-bromann christian-bromann commented Aug 3, 2024

This PR is an experimental enhancement to #445 which considers the light DOM when serializing Stencil components. We've experienced that a Stencil component may consider the light DOM for certain rendering conditions, e.g. add style properties or class names to a host component if the light DOM contains a certain slot.

You can use this dev build @stencil/[email protected] for testing purposes. Any feedback is much appreciated!

@christian-bromann christian-bromann requested review from a team as code owners August 3, 2024 00:04
@christian-bromann christian-bromann requested review from gnbm and tanner-reits and removed request for a team August 3, 2024 00:04
@christian-bromann christian-bromann changed the title hydrate with children Next.js SSR Hydration with Children Aug 3, 2024
@christian-bromann christian-bromann mentioned this pull request Aug 3, 2024
14 tasks
Comment on lines +16 to +17
{/* the following space makes the hydration error go away */}
{' '}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This a limitation we need to call out anywhere?

@christian-bromann christian-bromann merged commit ee44c5d into cb/nextjs Aug 20, 2024
5 checks passed
@christian-bromann christian-bromann deleted the cb/nextjs-with-children branch August 20, 2024 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants