Repository navigation
Commit 8dca775
committed
fix(hydration): skip parkPast in errorBlock when parent is disposed
mountErrorBoundary returns early when state.parentBlock.disposed is true
(after unmountBlock disposes the parent or after a replay-unmount disposal).
The caller errorBlock then unconditionally ran parkPast(state.end, parentScope),
overwriting the hydration cursor an ancestor catch boundary already placed.
state.end may be detached at that point, so getNextSibling returns null and
later siblings adopt from the wrong node.
Guard the parkPast call with !state.parentBlock.disposed so a disposed
boundary does not interfere with the ancestor's cursor.1 parent c3462a9 commit 8dca775
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39105 | 39105 | | |
39106 | 39106 | | |
39107 | 39107 | | |
39108 | | - | |
39109 | | - | |
| 39108 | + | |
| 39109 | + | |
| 39110 | + | |
| 39111 | + | |
| 39112 | + | |
39110 | 39113 | | |
39111 | 39114 | | |
39112 | 39115 | | |
| |||
0 commit comments