Repository navigation
Commit 09b67a5
committed
fix(octane): install COMMIT_WORK when store-sync drain is first registered
enqueueStoreSync pushes onto storeSyncQueue but relied on the
companion useEffect in useSyncExternalStore to install COMMIT_WORK
via installEffectDrivers. In a hidden-from-start Activity the effect
enrollment is skipped (inInactiveSubtree early return), so COMMIT_WORK
was never set. The commitEffects fast path then short-circuited past
the queue drains, leaving inst.queued true permanently and
hasScheduledWork stuck.1 parent fb41716 commit 09b67a5
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| |||
4589 | 4590 | | |
4590 | 4591 | | |
4591 | 4592 | | |
| 4593 | + | |
4592 | 4594 | | |
4593 | 4595 | | |
4594 | 4596 | | |
| |||
0 commit comments