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
1 changed files with 3 additions and 9 deletions

View File

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