chore: fix lint
This commit is contained in:
parent
939209c6b5
commit
31bdde0480
@ -55,7 +55,15 @@ export function createHydrationFunctions(
|
|||||||
const {
|
const {
|
||||||
mt: mountComponent,
|
mt: mountComponent,
|
||||||
p: patch,
|
p: patch,
|
||||||
o: { patchProp, nextSibling, parentNode, remove, insert, createComment }
|
o: {
|
||||||
|
patchProp,
|
||||||
|
createText,
|
||||||
|
nextSibling,
|
||||||
|
parentNode,
|
||||||
|
remove,
|
||||||
|
insert,
|
||||||
|
createComment
|
||||||
|
}
|
||||||
} = rendererInternals
|
} = rendererInternals
|
||||||
|
|
||||||
const hydrate: RootHydrateFunction = (vnode, container) => {
|
const hydrate: RootHydrateFunction = (vnode, container) => {
|
||||||
@ -113,11 +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(
|
insert((vnode.el = createText('')), node.parentElement!, node)
|
||||||
(vnode.el = document.createTextNode('')),
|
|
||||||
node.parentElement!,
|
|
||||||
node
|
|
||||||
)
|
|
||||||
nextNode = node
|
nextNode = node
|
||||||
} else {
|
} else {
|
||||||
nextNode = onMismatch()
|
nextNode = onMismatch()
|
||||||
|
Loading…
Reference in New Issue
Block a user