Repository navigation
Commit c6f0d65
committed
fix: release held-passive chain in completeDeferredLayouts
completeDeferredLayouts is an outermost commit boundary (entering at
EFFECT_COMMIT_DEPTH 0, operating at depth 1) but never called
finishNestedUpdateCommit(). When layout work triggered by deferred
layouts armed the held-passive chain (HELD_PASSIVE_CHAIN =
NESTED_UPDATE_CHAIN_ID on the 51st nested update), nested commitEffects
calls saw depth >= 2 and skipped the closer. The chain ID was never
incremented, so drainPassivePhase permanently returned early and held
passives and unmount cleanups were stranded.
Add the same depth-1 finishNestedUpdateCommit() call that commitEffects
uses, so the chain is properly closed when completeDeferredLayouts acts
as the outermost commit.1 parent 1e4edfe commit c6f0d65
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9790 | 9790 | | |
9791 | 9791 | | |
9792 | 9792 | | |
| 9793 | + | |
9793 | 9794 | | |
9794 | 9795 | | |
9795 | 9796 | | |
| |||
0 commit comments