Repository navigation
Commit 1f90171
committed
fix(octane): open frontier and preserve dialect in emptied CompiledContext remount
clearEmptiedProvider called resetScopeChildren which wiped scope.hooks,
losing CHILDREN_DIALECT_SLOT. A later body then saw previous === undefined
and mounted as a first render into live DOM, skipping the frontier path.
resetProviderChildren also never called openScopeFrontier, so even when the
previous === 2 path was reached before commit, the incoming body inserted
into the connected parentNode instead of an off-document fragment.
Fix both:
- clearEmptiedProvider restores CHILDREN_DIALECT_SLOT to 2 after the reset.
- resetProviderChildren opens a frontier when live, returning liveEnd.
- CompiledContext saves and restores the endMarker around renderSharedBody,
matching the descriptor Provider path in renderClientContextProvider.1 parent 189f545 commit 1f90171
1 file changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15649 | 15649 | | |
15650 | 15650 | | |
15651 | 15651 | | |
15652 | | - | |
| 15652 | + | |
15653 | 15653 | | |
15654 | 15654 | | |
15655 | 15655 | | |
| |||
15660 | 15660 | | |
15661 | 15661 | | |
15662 | 15662 | | |
| 15663 | + | |
15663 | 15664 | | |
15664 | 15665 | | |
15665 | 15666 | | |
15666 | 15667 | | |
15667 | | - | |
| 15668 | + | |
15668 | 15669 | | |
| 15670 | + | |
| 15671 | + | |
| 15672 | + | |
| 15673 | + | |
| 15674 | + | |
15669 | 15675 | | |
15670 | 15676 | | |
15671 | 15677 | | |
| |||
15701 | 15707 | | |
15702 | 15708 | | |
15703 | 15709 | | |
| 15710 | + | |
15704 | 15711 | | |
15705 | 15712 | | |
15706 | | - | |
| 15713 | + | |
15707 | 15714 | | |
15708 | 15715 | | |
15709 | 15716 | | |
15710 | 15717 | | |
15711 | | - | |
15712 | | - | |
| 15718 | + | |
| 15719 | + | |
| 15720 | + | |
| 15721 | + | |
| 15722 | + | |
| 15723 | + | |
15713 | 15724 | | |
15714 | 15725 | | |
15715 | 15726 | | |
| |||
0 commit comments