Repository navigation
fix(runtime-vapor): recover hydration that misses a server range - #16330
Merged
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
jrandolf
force-pushed
the
fix/vapor-mismatch-cursor
branch
from
November 18, 2026 03:54
4652157 to
76e27a6
Compare
@vue/compiler-core
@vue/compiler-dom
@vue/compiler-sfc
@vue/compiler-ssr
@vue/compiler-vapor
@vue/reactivity
@vue/runtime-core
@vue/runtime-dom
@vue/runtime-vapor
@vue/server-renderer
@vue/shared
vue
@vue/compat
commit: |
Size ReportBundles
Usages
|
jrandolf
force-pushed
the
fix/vapor-mismatch-cursor
branch
from
November 18, 2026 05:51
76e27a6 to
6e57175
Compare
A component the server rendered with one root has no `<!--{-->` range.
When the client renders more roots, the roots after the first read the
cursor past that server unit. They replaced the next node, also outside
the parent element, or threw. A `v-for` or a teleport that found no
server range of its own under the cursor threw as well.
When a root reads the cursor past the unit, give the unit the range
the server renders for several roots. The other roots then go in front
of its close. An empty root that trims the unit leaves its anchor as
the unit. A list or a teleport without its range puts an empty one
in place of the server node, and its content renders in that range.
close vuejs#16326
close vuejs#16327
jrandolf
force-pushed
the
fix/vapor-mismatch-cursor
branch
from
November 18, 2026 05:56
6e57175 to
094e690
Compare
This was referenced Nov 18, 2026
This was referenced Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #16326
Fixes #16327
A component the server rendered with one root has no
<!--{-->range. When the client renders more roots, the extra roots read the cursor past that node: they replace the next node, even outside the parent, or throw. Av-foror a teleport with no range of its own under the cursor throws.<!--{-->…<!--}-->range the server renders for several roots, and the extra roots go before its close. An empty first root leaves its anchor in the node's place.v-foror a teleport without its range puts an empty one in place of the server node and renders there.Applies cleanly with #16320, #16323 and #16324; they conflict only with each other.