mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
Update pagination request on client
This commit is contained in:
@@ -19,8 +19,8 @@ export interface BasePaginatedResponse<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface BasePaginationRequest {
|
export interface BasePaginationRequest {
|
||||||
limit: number;
|
skip: number;
|
||||||
page: number;
|
take: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ServerResponse = {
|
export type ServerResponse = {
|
||||||
|
|||||||
@@ -59,8 +59,8 @@ export const VirtualInfiniteGrid = ({
|
|||||||
const end = stopIndex * columnCount + columnCount;
|
const end = stopIndex * columnCount + columnCount;
|
||||||
|
|
||||||
const t = await query({
|
const t = await query({
|
||||||
limit: end - start,
|
|
||||||
skip: start,
|
skip: start,
|
||||||
|
take: end - start,
|
||||||
...queryParams,
|
...queryParams,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ export const LibraryAlbumsRoute = () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const { data: albums } = useAlbums({
|
const { data: albums } = useAlbums({
|
||||||
limit: 0,
|
skip: 0,
|
||||||
page: 0,
|
take: 0,
|
||||||
...filters,
|
...filters,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user