mirror of
https://github.com/docmost/docmost.git
synced 2026-05-18 23:44:24 +08:00
fix(base): remove maxPages cap that caused infinite scroll loop past row 500
This commit is contained in:
@@ -67,10 +67,6 @@ export function useBaseRowsQuery(
|
|||||||
getNextPageParam: (lastPage: IPagination<IBaseRow>) =>
|
getNextPageParam: (lastPage: IPagination<IBaseRow>) =>
|
||||||
lastPage.meta?.nextCursor ?? undefined,
|
lastPage.meta?.nextCursor ?? undefined,
|
||||||
staleTime: 5 * 60 * 1000,
|
staleTime: 5 * 60 * 1000,
|
||||||
// Cap cached pages so an invalidate after a type-conversion refetches
|
|
||||||
// a bounded set instead of serially re-requesting every page the user
|
|
||||||
// has ever scrolled through.
|
|
||||||
maxPages: 5,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user