Update pagination request on client

This commit is contained in:
jeffvli
2022-07-30 15:41:18 -07:00
parent aa673ac854
commit bc86da7762
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -19,8 +19,8 @@ export interface BasePaginatedResponse<T> {
}
export interface BasePaginationRequest {
limit: number;
page: number;
skip: number;
take: number;
}
export type ServerResponse = {
@@ -59,8 +59,8 @@ export const VirtualInfiniteGrid = ({
const end = stopIndex * columnCount + columnCount;
const t = await query({
limit: end - start,
skip: start,
take: end - start,
...queryParams,
});
@@ -46,8 +46,8 @@ export const LibraryAlbumsRoute = () => {
});
const { data: albums } = useAlbums({
limit: 0,
page: 0,
skip: 0,
take: 0,
...filters,
});