Open jerrynim opened 5 months ago
Hi I'm trying to use createQueryKeys with useInfiniteQuery
createQueryKeys
useInfiniteQuery
when use ctx.pageParam type error occurred
ctx.pageParam
Error Message
Property 'pageParam' does not exist on type '{ queryKey: QueryKey; signal: AbortSignal; meta: Record<string, unknown> | undefined; }'.ts(2339)
my Code is here
mails: (params) => ({ queryKey: [params], queryFn: (ctx) => getRequest({ ...params, page: ctx.pageParam }), }),
is there any way to use createQueryKeys with useInfiniteQuery
Any updates?
Also experiencing this error. I believe the type definitions of QueryKeyFactory need to be updated to have signal be optional
I'm facing the same bug
Hi I'm trying to use
createQueryKeys
withuseInfiniteQuery
when use
ctx.pageParam
type error occurredError Message
my Code is here
is there any way to use
createQueryKeys
withuseInfiniteQuery