Repository navigation
Commit 217d9c5
committed
fix(hydration): record speculative snapshot for de-opt inserts and reorders
reconcileDeoptChildren recorded a speculative snapshot (hydration.save)
only when removing an owned child. The empty-host append path and the
survivor reorder path only called journalRootChildren, which feeds the
root transaction journal but not the speculative arm's undo list.
A resolved @Try arm that hit those paths and then suspended would leave
client-built or reordered children in the server markup, so the retry
could treat them as already matching.
Add hydration.save(el) before both mutation paths, using the same
isFresh guard as the removal path. save() is idempotent per parent via
its saved Set, so it composes correctly when the removal path has
already captured the element.1 parent fd98909 commit 217d9c5
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33090 | 33090 | | |
33091 | 33091 | | |
33092 | 33092 | | |
| 33093 | + | |
| 33094 | + | |
| 33095 | + | |
| 33096 | + | |
33093 | 33097 | | |
33094 | 33098 | | |
33095 | 33099 | | |
| |||
33194 | 33198 | | |
33195 | 33199 | | |
33196 | 33200 | | |
| 33201 | + | |
| 33202 | + | |
| 33203 | + | |
| 33204 | + | |
33197 | 33205 | | |
33198 | 33206 | | |
33199 | 33207 | | |
| |||
0 commit comments