mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-12 03:38:07 +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) {
|
if (!isIntersecting.value) {
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
const observer = useIntersectionObserver(attrs.loader)
|
const observer = useIntersectionObserver(attrs.loader as Partial<IntersectionObserverInit> | undefined)
|
||||||
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