mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 13:00:13 +02:00
Update pagination request on client
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user