dillon1000/react

Commit

Add separate ChildDeletion flag (#20264)

In the old, effect list implementation, the Deletion flag is is set on
each deleted fiber.

In the new, subtreeTag implementation, the Deletion flag is set on the
parent of each deleted fiber, and the deleted fibers themselves are
pushed to the `deletions` array.

To better distinguish between these two uses, I've added a separate
ChildDeletion flag. That way we can, if desired, maintain both
implementations simultaneously, as we bisect to find the performance
regression that we're currently investigating.
Browse files
Changed paths1 file
First-parent comparison
M packages/react-reconciler/src/ReactFiberFlags.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…