diff --git a/src/components/InfiniteTable/useRowSelection.ts b/src/components/InfiniteTable/useRowSelection.ts index fef9718..6d402b5 100644 --- a/src/components/InfiniteTable/useRowSelection.ts +++ b/src/components/InfiniteTable/useRowSelection.ts @@ -78,12 +78,6 @@ export const useRowSelection = ({ }, 1000); }, [allRowSelectedMode, internalSelectedRowKeys.length, totalRows, gridRef]); - useEffect(() => { - return () => { - timeoutRef.current && clearTimeout(timeoutRef.current); - }; - }, [onHeaderCheckboxChange]); - const onSelectionChanged = useCallback( (event: { api: { getSelectedNodes: () => any } }) => { if (allRowSelectedModeLock.current) {