dillon1000/react

Commit

Don't visit passive effects during layout phase (#19809)

Removes the `Update` flag when scheduling a passive effect for
`useEffect`. The `Passive` flag alone is sufficient.

This doesn't affect any behavior, but does optimize the performance of
the commit phase.
Browse files
Changed paths2 files
First-parent comparison
M packages/react-reconciler/src/ReactFiberHooks.new.js ModifiedM packages/react-reconciler/src/ReactFiberWorkLoop.new.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…