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

Allow contents of containerless universal to be removed #268

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

EECOLOR
Copy link
Member

@EECOLOR EECOLOR commented Sep 19, 2024

When a hydration problem occurred (mismatch between server and client) the node was doubly rendered.

This change allows the built-in React fix for the problem (replace the content with client rendered content) to be working.

Note: when this is released we should thoroughly check sites before releasing this version.

React set textContent to empty string to remove all children. This is only done for ELEMENT_NODE types.
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.

3 participants