fix random error
This commit is contained in:
parent
248f382276
commit
538cdaf8a1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue