Fix off by one with new SWR cursor generation

This commit is contained in:
Jackson Harper
2024-06-14 12:38:32 +08:00
parent 45a604732b
commit c130c5309a

View File

@ -253,7 +253,7 @@ export function useGetLibraryItemsQuery(
]
},
(args: any[]) => {
const pageIndex = args[4] as number
const pageIndex = args[3] as number
return gqlFetcher(query, { ...variables, after: pageIndex }, true)
},
{ revalidateFirstPage: false }