dillon1000/react

Commit

Reconciler: Combine identical cases in findParent (#32210)

## Summary

When lookup `Parent`, `HostRoot` and `HostPortal` should be merged,
because when creating a `Portal`, it will also include
`containerInfo`(So we can directly use this `containerInfo` to delete
the real DOM nodes.), so there is no need to handle them separately.

## How did you test this change?

No behavior changes, all existing tests pass.
Browse files
Changed paths1 file
First-parent comparison
M packages/react-reconciler/src/ReactFiberCommitWork.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…