mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 22:53:08 +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>) =>
|
||||
lastPage.meta?.nextCursor ?? undefined,
|
||||
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