dillon1000/react

Commit

update hideOrUnhideAllChildren to hide portals that aren't wrapped in a host component (#16992)

Currently, when a node suspends, if its subtree contains a portal, the portal is not hidden. This hides portals in the subtree when it's not wrapped in a host component .
Browse files
Changed paths2 files
First-parent comparison
M packages/react-dom/src/__tests__/ReactDOMSuspensePlaceholder-test.js ModifiedM packages/react-reconciler/src/ReactFiberCommitWork.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…