mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +00:00
fix: join the fragments
This commit is contained in:
parent
e2d0350698
commit
dc6d922773
@ -14,7 +14,7 @@ export const createLazyIOClientPage = (componentLoader: Component) => {
|
|||||||
const instance = getCurrentInstance()!
|
const instance = getCurrentInstance()!
|
||||||
let vnode: VNode | null = null
|
let vnode: VNode | null = null
|
||||||
if (import.meta.client && nuxt.isHydrating) {
|
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 isIntersecting = ref(false)
|
||||||
const el: Ref<Element | null> = ref(null)
|
const el: Ref<Element | null> = ref(null)
|
||||||
@ -47,7 +47,7 @@ export const createLazyNetworkClientPage = (componentLoader: Component) => {
|
|||||||
const instance = getCurrentInstance()!
|
const instance = getCurrentInstance()!
|
||||||
let vnode: VNode | null = null
|
let vnode: VNode | null = null
|
||||||
if (import.meta.client && nuxt.isHydrating) {
|
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)
|
const isIdle = ref(false)
|
||||||
let idleHandle: number | null = null
|
let idleHandle: number | null = null
|
||||||
|
Loading…
Reference in New Issue
Block a user