mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-20 11:03:06 +02:00
optimize ND/JF list fetch
- no longer requires 2 separate fetches for count and data - the list count includes the first page so we set the query data directly
This commit is contained in:
@@ -37,7 +37,7 @@ export const AlbumListInfiniteTable = ({
|
||||
size = 'default',
|
||||
}: AlbumListInfiniteTableProps) => {
|
||||
const listCountQuery = albumQueries.listCount({
|
||||
query: { ...query },
|
||||
query: { ...query, limit: itemsPerPage },
|
||||
serverId: serverId,
|
||||
}) as UseSuspenseQueryOptions<number, Error, number, readonly unknown[]>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user