AmmarA
tRPC13mo ago
2 replies
Ammar

How to get cursor in new Tanstack Query integration?

How can I access the
cursor
(or
pageParam
) in the new
infiniteQueryOptions
function? The current procedure input takes a
cursor
but I'm getting and error saying
cursor
is not passed to
infiniteQueryOptions
, and I can't pass it manually as it is calculated using
getNextPageParam
.
Was this page helpful?