dillon1000/react

Commit

Fix: Passive effect updates are never sync (#21215)

I screwed this up in #21082. Got confused by the < versus > thing again.

The helper functions are annoying, too, because I always forget the
intended order of the arguments. But they're still helpful because when
we refactor the type we only have the change the logic in one place.

Added a regression test.
Browse files
Changed paths5 files
First-parent comparison
M packages/react-reconciler/src/ReactEventPriorities.new.js ModifiedM packages/react-reconciler/src/ReactEventPriorities.old.js ModifiedM packages/react-reconciler/src/ReactFiberWorkLoop.new.js ModifiedM packages/react-reconciler/src/ReactFiberWorkLoop.old.js ModifiedA packages/react-reconciler/src/__tests__/ReactUpdatePriority-test.js Added
Patch

Files changed

Rendering syntax-highlighted changes…