fix: don't use the default that is used for slots

This commit is contained in:
Michael Brevard 2024-04-09 21:49:02 +03:00 committed by GitHub
parent 26f2e4e7d1
commit 988a99b771
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,15 +23,9 @@ export const createLazyIOClientPage = (componentLoader: Component) => {
unobserve = null unobserve = null
}) })
return () => h('div', { ref: el }, [ return () => h('div', { ref: el }, [
h(ClientOnly, undefined, { h(ClientOnly, undefined, [
default: () => { isIntersecting.value ? h(componentLoader, attrs) : null
if (isIntersecting.value) { ]),
return h(componentLoader, attrs)
} else {
return null
}
},
}),
]) ])
}, },
}) })