Repository navigation
Commit cdfdb54
committed
fix(octane): prune all created slots in pruneSignalRetryVisit regardless of position
Remove the last-slot exemption in pruneSignalRetryVisit that skipped
replacement pruning for the final _slots entry when the scope suspended.
The exemption assumed the last slot's identity was unproven, but every
slot creation path (componentSlot, childSlot, ifBlock, switchBlock)
assigns its identity fields (currentComp, branch, prevKey) before
calling renderBlock for the slot's body. The occupant identity is
therefore proven even when the body suspends mid-render.
Without this fix, a slot whose occupant was replaced would retain the
prior query$ owner whenever the scope suspended after the last slot
finished rendering (e.g. a use() call after all JSX), because the
completed slot was the last _slots entry and was skipped.1 parent 9f25766 commit cdfdb54
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
865 | 865 | | |
866 | 866 | | |
867 | 867 | | |
868 | | - | |
869 | | - | |
870 | | - | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
871 | 872 | | |
872 | 873 | | |
873 | 874 | | |
| |||
880 | 881 | | |
881 | 882 | | |
882 | 883 | | |
883 | | - | |
884 | | - | |
885 | 884 | | |
886 | 885 | | |
887 | 886 | | |
888 | 887 | | |
889 | 888 | | |
890 | 889 | | |
891 | 890 | | |
892 | | - | |
| 891 | + | |
893 | 892 | | |
894 | 893 | | |
895 | 894 | | |
| |||
0 commit comments