mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-03 22:45:19 +00:00
chore: attempt to provide default non-null value
This commit is contained in:
parent
52e55ee044
commit
068d40a283
@ -37,7 +37,7 @@ export const createLazyIOClientPage = (componentLoader: Component) => {
|
|||||||
|
|
||||||
if (!isIntersecting.value) {
|
if (!isIntersecting.value) {
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
const observer = useIntersectionObserver(attrs.loader as Partial<IntersectionObserverInit> | undefined)
|
const observer = useIntersectionObserver(attrs.loader ?? {})
|
||||||
unobserve = observer!.observe(el.value as Element, () => {
|
unobserve = observer!.observe(el.value as Element, () => {
|
||||||
isIntersecting.value = true
|
isIntersecting.value = true
|
||||||
unobserve?.()
|
unobserve?.()
|
||||||
|
Loading…
Reference in New Issue
Block a user