mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-07 17:32:31 +00:00
fix: don't use the default that is used for slots
This commit is contained in:
parent
26f2e4e7d1
commit
988a99b771
@ -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
|
||||
]),
|
||||
])
|
||||
},
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user