dillon1000/react

Commit

Add static version of Passive subtree tag (#19510)

Creates new subtree tag, PassiveStatic, that represents whether a
tree contains any passive effect hooks.

It corresponds to the PassiveStatic effect tag, which represents the
same concept for an individual fiber.

This allows us to remove the PassiveStatic effect tag from PassiveMask.
Its presence was causing us to schedule a passive effect phase callback
on every render, instead of only when something changed. That's now
fixed; this is reflected in the SchedulerProfiler tests.

(The naming is getting really confusing. Need to do some bikeshedding.)
Browse files
Changed paths4 files
First-parent comparison
M packages/react-reconciler/src/ReactFiberWorkLoop.new.js ModifiedM packages/react-reconciler/src/ReactSideEffectTags.js ModifiedM packages/react-reconciler/src/ReactSubtreeTags.js ModifiedM packages/react-reconciler/src/__tests__/SchedulingProfiler-test.internal.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…