mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-03 22:04:12 +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) {
|
||||
onMounted(() => {
|
||||
const observer = useIntersectionObserver(attrs.loader as Partial<IntersectionObserverInit> | undefined)
|
||||
const observer = useIntersectionObserver(attrs.loader ?? {})
|
||||
unobserve = observer!.observe(el.value as Element, () => {
|
||||
isIntersecting.value = true
|
||||
unobserve?.()
|
||||
|
Loading…
Reference in New Issue
Block a user