chore: use existing method

This commit is contained in:
Evan You 2022-05-19 14:08:55 +08:00
parent 3991609087
commit 523f6aa363

View File

@ -121,7 +121,7 @@ export function createHydrationFunctions(
// #5728 empty text node inside a slot can cause hydration failure // #5728 empty text node inside a slot can cause hydration failure
// because the server rendered HTML won't contain a text node // because the server rendered HTML won't contain a text node
if (vnode.children === '') { if (vnode.children === '') {
insert((vnode.el = createText('')), node.parentElement!, node) insert((vnode.el = createText('')), parentNode(node)!, node)
nextNode = node nextNode = node
} else { } else {
nextNode = onMismatch() nextNode = onMismatch()