Skip to content

Commit 31bdde0

Browse files
committed
chore: fix lint
1 parent 939209c commit 31bdde0

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

packages/runtime-core/src/hydration.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,15 @@ export function createHydrationFunctions(
5555
const {
5656
mt: mountComponent,
5757
p: patch,
58-
o: { patchProp, nextSibling, parentNode, remove, insert, createComment }
58+
o: {
59+
patchProp,
60+
createText,
61+
nextSibling,
62+
parentNode,
63+
remove,
64+
insert,
65+
createComment
66+
}
5967
} = rendererInternals
6068

6169
const hydrate: RootHydrateFunction = (vnode, container) => {
@@ -113,11 +121,7 @@ export function createHydrationFunctions(
113121
// #5728 empty text node inside a slot can cause hydration failure
114122
// because the server rendered HTML won't contain a text node
115123
if (vnode.children === '') {
116-
insert(
117-
(vnode.el = document.createTextNode('')),
118-
node.parentElement!,
119-
node
120-
)
124+
insert((vnode.el = createText('')), node.parentElement!, node)
121125
nextNode = node
122126
} else {
123127
nextNode = onMismatch()

0 commit comments

Comments
 (0)