Skip to content

Commit

Permalink
feat: performance issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mguellsegarra committed Sep 20, 2024
1 parent 89e483d commit cf9386e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/components/InfiniteTable/InfiniteTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
ColDef,
ColumnResizedEvent,
ColumnState,
FirstDataRenderedEvent,
GridReadyEvent,
IGetRowsParams,
RowDoubleClickedEvent,
Expand All @@ -28,7 +27,7 @@ import { useRowSelection } from "./useRowSelection";
import { areStatesEqual, useColumnState } from "./useColumnState";
import { CHECKBOX_COLUMN, STATUS_COLUMN } from "./columnStateHelper";

const DEBOUNCE_TIME = 50;
const DEBOUNCE_TIME = 100;
const DEFAULT_TOTAL_ROWS_VALUE = Number.MAX_SAFE_INTEGER;

export type InfiniteTableProps = Omit<
Expand Down Expand Up @@ -398,17 +397,17 @@ const InfiniteTableComp = forwardRef<InfiniteTableRef, InfiniteTableProps>(
getRowStyle={onRowStyle}
suppressCellFocus={true}
suppressRowClickSelection={true}
rowBuffer={0}
rowBuffer={10}
rowSelection={"multiple"}
onDragStopped={onColumnMoved}
onColumnResized={onColumnResized}
rowModelType={"infinite"}
cacheBlockSize={200}
cacheBlockSize={500}
onSelectionChanged={onSelectionChangedDebounced}
cacheOverflowSize={2}
maxConcurrentDatasourceRequests={1}
infiniteInitialRowCount={50}
maxBlocksInCache={10}
maxBlocksInCache={20}
onGridReady={onGridReady}
onBodyScroll={onBodyScroll}
blockLoadDebounceMillis={DEBOUNCE_TIME}
Expand Down

0 comments on commit cf9386e

Please sign in to comment.