-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabled teleport inside fragment causes SSR hydration mismatches #6152
Labels
❗ p4-important
Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf.
scope: ssr
scope: teleport
Comments
edison1105
added
scope: teleport
scope: ssr
❗ p4-important
Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf.
labels
Jun 21, 2022
b60cff0 didn't account for disabled teleport, |
KaelWD
added a commit
to KaelWD/vue-next
that referenced
this issue
Jun 21, 2022
haoqunjiang
added
scope: suspense
scope: teleport
scope: ssr
and removed
scope: teleport
scope: ssr
scope: suspense
labels
Mar 24, 2023
yyx990803
pushed a commit
that referenced
this issue
Oct 21, 2023
lumozx
pushed a commit
to lumozx/core
that referenced
this issue
Oct 21, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
❗ p4-important
Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf.
scope: ssr
scope: teleport
Vue version
3.2.37
Link to minimal reproduction
https://sfc.vuejs.org/#__DEV____SSR__eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cD5cbmltcG9ydCBDb21wIGZyb20gJy4vQ29tcC52dWUnXG48L3NjcmlwdD5cblxuPHRlbXBsYXRlPlxuICA8ZGl2PlxuICAgIFBhcmVudCBmcmFnbWVudFxuICA8L2Rpdj5cbiAgPENvbXA+PC9Db21wPlxuPC90ZW1wbGF0ZT4iLCJpbXBvcnQtbWFwLmpzb24iOiJ7XG4gIFwiaW1wb3J0c1wiOiB7XG4gICAgXCJ2dWVcIjogXCJodHRwczovL3VucGtnLmNvbS9AdnVlL3J1bnRpbWUtZG9tQDMuMi4zNy9kaXN0L3J1bnRpbWUtZG9tLmVzbS1icm93c2VyLmpzXCIsXG4gICAgXCJ2dWUvc2VydmVyLXJlbmRlcmVyXCI6IFwiaHR0cHM6Ly91bnBrZy5jb20vQHZ1ZS9zZXJ2ZXItcmVuZGVyZXJAMy4yLjM3L2Rpc3Qvc2VydmVyLXJlbmRlcmVyLmVzbS1icm93c2VyLmpzXCJcbiAgfVxufSIsIkNvbXAudnVlIjoiPHRlbXBsYXRlPlxuICA8VGVsZXBvcnQgZGlzYWJsZWQgdG89XCJib2R5XCI+XG4gICAgPGRpdj5cbiAgICAgIFRlbGVwb3J0IGNvbnRlbnRcbiAgICA8L2Rpdj5cbiAgPC9UZWxlcG9ydD5cbjwvdGVtcGxhdGU+In0=
Steps to reproduce
N/A
What is expected?
No warnings
What is actually happening?
Hydration completed but contains mismatches
with no information about where they are.core/packages/runtime-core/src/hydration.ts
Lines 494 to 501 in 11e17a1
This newly inserted anchor can then cause
Hydration children mismatch in <div>: server rendered element contains more child nodes than client vdom
in its parent element.System Info
No response
Any additional comments?
Having a separate warning for "fragment didn't hydrate successfully" would be nice too.
The text was updated successfully, but these errors were encountered: