Improve performances on main
This commit is contained in:
@ -136,8 +136,10 @@ export const useExportTableData = ({
|
||||
? selectedFindManyParams
|
||||
: findManyRecordsParams;
|
||||
|
||||
// Todo: this needs to be done on click on the Export not button, not to be reactive. Use Lazy query for example
|
||||
const { totalCount, records, fetchMoreRecords } = useFindManyRecords({
|
||||
...usedFindManyParams,
|
||||
depth: 0,
|
||||
limit: pageSize,
|
||||
onCompleted: (_data, { hasNextPage }) => {
|
||||
setHasNextPage(hasNextPage ?? false);
|
||||
|
||||
Reference in New Issue
Block a user