Open
Description
I'm having a very specific issue inside a complex project that I can't give a minimal reproduction example of.
Basically I mount a React component using createRoot(document.getElementByid('...')).render(<MyComponent />
For some reason, <MyComponent />
can end up being unmounted due to an error in one of its children.
I know that description is very vague, but do you have any idea what could cause the root element mounted using createRoot().render()
to be unmounted? This would be very helpful to try to debug a more precise portion of the code I have.
I haven't found anything in the docs indicating that a component mounted using createRoot().render()
could ever be unmounted without explicitly calling .unmount()
(which I don't).