Repository navigation
Commit 54ed081
committed
fix(hydration): mark range end after single-root discard so later siblings stay quiet
When a hookless single-root clone discards a mismatched server node,
discardCursor advances the adoption cursor to the next sibling. If that
sibling is the enclosing range-end marker, it was never recorded in
HYDRATION_REBUILT, so a later sibling's firstAtRangeEnd call returned
true and emitted a duplicate mismatch diagnostic for the same recovery.
Mark the range end after discardCursor, matching the pattern already
used by rebuildFragment. Add a SingleThenTally fixture that fails
without the fix (two warnings instead of one in dev mode).1 parent eeae6f8 commit 54ed081
3 files changed
Lines changed: 18 additions & 0 deletions
File tree
- packages/octane
- src
- tests/hydration
- _fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19966 | 19966 | | |
19967 | 19967 | | |
19968 | 19968 | | |
| 19969 | + | |
| 19970 | + | |
19969 | 19971 | | |
19970 | 19972 | | |
19971 | 19973 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
65 | 72 | | |
66 | 73 | | |
67 | 74 | | |
| |||
77 | 84 | | |
78 | 85 | | |
79 | 86 | | |
| 87 | + | |
80 | 88 | | |
81 | 89 | | |
82 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
213 | 221 | | |
214 | 222 | | |
215 | 223 | | |
| |||
0 commit comments