Repository navigation
Commit 2ea1e12
committed
fix(hydration): settle a framed component's claim from its markerless branch
When a framed component has no wrapper template of its own (its body is a
markerless @if/@switch), renderOwned opens a nested beginClaim/endClaim
for the branch arm. The inner endClaim restores the parent's unsettled
claimEnd (undefined) and clears claimFrom, so renderClaimed's endClaim
returns from=undefined and settleClaim's cursor fallback cannot find the
stale server tail after the arm's adopted roots.
Fix: in renderClaimed, save heldClaim before renderBlock and clear it.
After endClaim, when the claim was not settled (from===undefined) but
renderOwned set heldClaim during the render, use it as from. This
propagates the markerless branch's settlement to the enclosing frame
without leaking into renderAdoptedArm's separate claim path.1 parent 0d67b3e commit 2ea1e12
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19456 | 19456 | | |
19457 | 19457 | | |
19458 | 19458 | | |
| 19459 | + | |
| 19460 | + | |
19459 | 19461 | | |
19460 | 19462 | | |
19461 | 19463 | | |
| |||
19465 | 19467 | | |
19466 | 19468 | | |
19467 | 19469 | | |
| 19470 | + | |
| 19471 | + | |
| 19472 | + | |
| 19473 | + | |
19468 | 19474 | | |
19469 | 19475 | | |
19470 | 19476 | | |
| |||
0 commit comments