dillon1000/react

Commit

[DOM] Apply Fragment listeners to children inserted into portals later (#37166)

Commit-time fragment ancestry stopped at HostPortal via isHostParent, so
a child added after listeners were registered never received them even
though existing portal siblings did. Collect fragment parents past
portals and other non-HostComponent host parents so commit bookkeeping
matches HostComponent/HostRoot fragment ancestry.
Browse files
Changed paths2 files
First-parent comparison
M packages/react-dom/src/__tests__/ReactDOMFragmentRefs-test.js ModifiedM packages/react-reconciler/src/ReactFiberCommitHostEffects.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…