Repository navigation
Commit 6df886d
committed
fix(octane): use owning block for disposal checks and retire lite arms in return slots
Two fixes for lite control-flow arms:
1. renderBranchSlot's post-teardown guards checked parentBlock.disposed,
but when a nested @if/@switch sits inside a lite arm, parentBlock is a
LiteBlockImpl which has no disposed field. The guard never fired, letting
the incoming arm mount into an already-unmounted tree. Compute
owningBlock(parentBlock) once per swap and check its disposed flag.
2. disposeReturnSlot updated its first/last snapshot to include the lite
arm's stand-in, but retireRootBlock was still called only on
state.block ?? state.portal?.block, skipping the lite arm's stand-in.
Add state.lite?.block to the retirement chain.1 parent dc4812a commit 6df886d
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12829 | 12829 | | |
12830 | 12830 | | |
12831 | 12831 | | |
12832 | | - | |
| 12832 | + | |
12833 | 12833 | | |
12834 | 12834 | | |
12835 | 12835 | | |
| |||
45524 | 45524 | | |
45525 | 45525 | | |
45526 | 45526 | | |
| 45527 | + | |
45527 | 45528 | | |
45528 | 45529 | | |
45529 | 45530 | | |
| |||
45552 | 45553 | | |
45553 | 45554 | | |
45554 | 45555 | | |
45555 | | - | |
| 45556 | + | |
45556 | 45557 | | |
45557 | 45558 | | |
45558 | 45559 | | |
| |||
45564 | 45565 | | |
45565 | 45566 | | |
45566 | 45567 | | |
45567 | | - | |
| 45568 | + | |
45568 | 45569 | | |
45569 | 45570 | | |
45570 | 45571 | | |
| |||
45790 | 45791 | | |
45791 | 45792 | | |
45792 | 45793 | | |
45793 | | - | |
| 45794 | + | |
45794 | 45795 | | |
45795 | 45796 | | |
45796 | 45797 | | |
| |||
45805 | 45806 | | |
45806 | 45807 | | |
45807 | 45808 | | |
45808 | | - | |
| 45809 | + | |
45809 | 45810 | | |
45810 | 45811 | | |
45811 | 45812 | | |
45812 | | - | |
| 45813 | + | |
45813 | 45814 | | |
45814 | 45815 | | |
45815 | 45816 | | |
| |||
0 commit comments