Skip to content

Commit 150cbb8

Browse files
atrakhConvex, Inc.
authored andcommitted
dashboard: always use the stored page size when loading new pages for… (#41763)
… the data page GitOrigin-RevId: e29909d76f78992c0d2e1223606c9902bc921387
1 parent 47b82e1 commit 150cbb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

npm-packages/dashboard-common/src/features/data/components/Table/utils/useQueryFilteredTable.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ export const useQueryFilteredTable = (tableName: string) => {
7676

7777
const loadNextPage = useCallback(() => {
7878
if (status === "CanLoadMore") {
79-
loadMore(DEFAULT_DATA_PAGE_SIZE);
79+
loadMore(pageSize);
8080
incNumRowsReadEstimate(maximumRowsRead);
8181
}
82-
}, [status, loadMore, incNumRowsReadEstimate]);
82+
}, [status, loadMore, incNumRowsReadEstimate, pageSize]);
8383

8484
useEffect(() => {
8585
if (staleAsOf) {

0 commit comments

Comments
 (0)