Open
Description
Just opening this for tracking with the associated PR: #1330 .
When:
render(<Component />, { container: document });
(Untested: This bug may require that Component
render a <body>
element.)
Then:
TypeError: Cannot read properties of null (reading 'removeChild')
Because:
// pure.js
if (container.parentNode === document.body) {
document.body.removeChild(container);
}
If we first check that document.body
is not null, then this error will not occur.
Metadata
Metadata
Assignees
Labels
No labels