mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-07 09:22:27 +00:00
fix: provide strict typing for intersection
This commit is contained in:
parent
1c883b983e
commit
64179576b5
@ -37,7 +37,7 @@ export const createLazyIOClientPage = (componentLoader: Component) => {
|
||||
|
||||
if (!isIntersecting.value) {
|
||||
onMounted(() => {
|
||||
const observer = useIntersectionObserver(attrs.loader)
|
||||
const observer = useIntersectionObserver(attrs.loader as Partial<IntersectionObserverInit> | undefined)
|
||||
unobserve = observer!.observe(el.value as Element, () => {
|
||||
isIntersecting.value = true
|
||||
unobserve?.()
|
||||
|
Loading…
Reference in New Issue
Block a user