chore: use existing method
This commit is contained in:
parent
3991609087
commit
523f6aa363
@ -121,7 +121,7 @@ export function createHydrationFunctions(
|
||||
// #5728 empty text node inside a slot can cause hydration failure
|
||||
// because the server rendered HTML won't contain a text node
|
||||
if (vnode.children === '') {
|
||||
insert((vnode.el = createText('')), node.parentElement!, node)
|
||||
insert((vnode.el = createText('')), parentNode(node)!, node)
|
||||
nextNode = node
|
||||
} else {
|
||||
nextNode = onMismatch()
|
||||
|
Loading…
Reference in New Issue
Block a user