We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28006a8 commit 1a959fdCopy full SHA for 1a959fd
src/lib/seam/use-seam-infinite-query.ts
@@ -2,6 +2,7 @@ import type {
2
SeamHttpApiError,
3
SeamHttpEndpointPaginatedQueryPaths,
4
SeamHttpEndpoints,
5
+ SeamHttpRequest,
6
SeamPageCursor,
7
} from '@seamapi/http/connect'
8
import {
@@ -49,7 +50,7 @@ export function useSeamInfiniteQuery<
49
50
// Type assertion is needed here for performance reasons. The types are correct at runtime.
51
const endpoint = client[endpointPath] as (...args: any) => any
52
const request = endpoint(parameters, options)
- const pages = client.createPaginator(request)
53
+ const pages = client.createPaginator(request as SeamHttpRequest<any, any>)
54
if (pageParam == null) {
55
const [data, { nextPageCursor }] = await pages.firstPage()
56
return {
0 commit comments