Subscribe on changes!

SSR Fragment mismatch

avatar
May 25th 2022

Vue version

latest version

Link to minimal reproduction

https://github.com/vuejs/core/blob/3cfe5f9fc8b20e096ace2372bfbe58a2f0f0d5ad/packages/runtime-core/src/hydration.ts#L489

Steps to reproduce

需要添加一个next.data===‘teleport-end’的判断条件,或者当有teleport 的时候会出现mismatch

What is expected?

if (next && isComment(next) && next.data === ']'||next.data==='teleport end')) { return nextSibling((vnode.anchor = next)); }

What is actually happening?

if (next && isComment(next) && next.data === ']') { return nextSibling((vnode.anchor = next)); }

System Info

No response

Any additional comments?

No response

avatar
May 25th 2022

This is not a valid reproduction.