mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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
|
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
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
])
|
])
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user