chore: attempt to provide default non-null value

This commit is contained in:
tbitw2549 2024-06-14 20:17:09 +03:00
parent 52e55ee044
commit 068d40a283

View File

@ -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?.()