fix random error

This commit is contained in:
john 2025-05-20 10:46:23 +02:00
parent 248f382276
commit 538cdaf8a1

View file

@ -18,7 +18,7 @@ export function useIntersectionLoad(
) {
const observerRef = useRef<IntersectionObserver | null>(null)
const loading = useRef(false)
const timeoutRef = useRef<number | null>(null)
const timeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null)
useEffect(() => {
const el = elementRef.current