Skip to content

Commit

Permalink
chore: use existing method
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 19, 2022
1 parent 3991609 commit 523f6aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/hydration.ts
Expand Up @@ -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()
Expand Down

0 comments on commit 523f6aa

Please sign in to comment.