-
Notifications
You must be signed in to change notification settings - Fork 49.3k
Closed
Labels
Component: DOMStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bugType: Enhancement
Description
When calling unmountComponentAtNode(document.getElementById('react-root'))
, it returns false
.
This would normally happen because I'm trying to unmount something that's not a React node, but that's not the case.
I'm using unstable_createRoot
. If I use render
instead, it works fine.
React version: 0.0.0-experimental-79740da4c
Steps To Reproduce
- Render component with
unstable_createRoot
. - Try to unmount the app with
unmountComponentAtNode
.
Link to code example: https://codesandbox.io/s/epic-leftpad-ih6ts?file=/src/index.js
The current behavior
Doesn't unmount the root React component.
The expected behavior
Should unmount the root React component.
Metadata
Metadata
Assignees
Labels
Component: DOMStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bugType: Enhancement