Skip to content

Commit 64226d9

Browse files
Azir-11honghuangdc
authored andcommitted
fix(hooks): update pagination pageSize after data fetch.
1 parent e675474 commit 64226d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hooks/common/table.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ export function useNaivePaginatedTable<ResponseData, ApiData>(
131131
getColumns,
132132
onFetched: data => {
133133
pagination.itemCount = data.total;
134+
pagination.pageSize = data.pageSize;
134135
}
135136
});
136137

0 commit comments

Comments
 (0)