fix: join the fragments

This commit is contained in:
Michael Brevard 2024-04-11 00:13:22 +03:00 committed by GitHub
parent e2d0350698
commit dc6d922773
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@ export const createLazyIOClientPage = (componentLoader: Component) => {
const instance = getCurrentInstance()!
let vnode: VNode | null = null
if (import.meta.client && nuxt.isHydrating) {
vnode = createStaticVNode(getFragmentHTML(instance.vnode.el), 1)
vnode = createStaticVNode(getFragmentHTML(instance.vnode.el).join(''), 1)
}
const isIntersecting = ref(false)
const el: Ref<Element | null> = ref(null)
@ -47,7 +47,7 @@ export const createLazyNetworkClientPage = (componentLoader: Component) => {
const instance = getCurrentInstance()!
let vnode: VNode | null = null
if (import.meta.client && nuxt.isHydrating) {
vnode = createStaticVNode(getFragmentHTML(instance.vnode.el), 1)
vnode = createStaticVNode(getFragmentHTML(instance.vnode.el).join(''), 1)
}
const isIdle = ref(false)
let idleHandle: number | null = null