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

Superfluous text node in root when using react #415

Open
robin-drexler opened this issue Aug 16, 2024 · 1 comment
Open

Superfluous text node in root when using react #415

robin-drexler opened this issue Aug 16, 2024 · 1 comment
Assignees

Comments

@robin-drexler
Copy link
Member

It appears that when using react, the root always contains a text node, even though you didn't render one

image

to reproduce:

checkout the rd/text-node branch and run pnpm run example:kitchen-sink, open the browser and select react.

You'll see that in addition to the ui-stack, root.children also has an empty text node.

@robin-drexler
Copy link
Member Author

Just noticed that this doesn't occur when you select the iframe as remote env, only in the web worker

@lemonmade lemonmade self-assigned this Aug 16, 2024
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

No branches or pull requests

2 participants