Skip to content

Commit bd87c8d

Browse files
Add throttleTime to useEffect dependency array
1 parent 3721fc7 commit bd87c8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const ReactWindowScroller = ({
5555
handleWindowScroll.cancel()
5656
scrollElementRef.removeEventListener('scroll', handleWindowScroll)
5757
}
58-
}, [isGrid, scrollElementRef])
58+
}, [isGrid, scrollElementRef, throttleTime])
5959

6060
const onScroll = useCallback(
6161
({

0 commit comments

Comments
 (0)