From dc6d92277336c584b9f22c228ab94231b9adb328 Mon Sep 17 00:00:00 2001 From: Michael Brevard Date: Thu, 11 Apr 2024 00:13:22 +0300 Subject: [PATCH] fix: join the fragments --- .../nuxt/src/components/runtime/client-delayed-component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nuxt/src/components/runtime/client-delayed-component.ts b/packages/nuxt/src/components/runtime/client-delayed-component.ts index 1acf7daac3..0009962480 100644 --- a/packages/nuxt/src/components/runtime/client-delayed-component.ts +++ b/packages/nuxt/src/components/runtime/client-delayed-component.ts @@ -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 = 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