-
Notifications
You must be signed in to change notification settings - Fork 49.9k
Closed
Labels
Description
The way we implement portals is through a nested React.render in componentDidMount/Update. This is also how react-art can switch render mode in the middle of the tree.
This comes with a few problems.
- We can't reason about the depth of a component. Which is why we had to implement mountOrder.
- We can't reason about its position in the tree for debugging purposes (react-devtools).
- We can't pass the context through to the next subtree.
We should have a first-class concept of nested render trees, that can optionally use a different render mode.
me6iaton