NeonN
tRPC2y ago
2 replies
Neon

Infinite query get direction info

Hello everyone,

I'm implementing a bidirectional infinite query and i would need to access the direction param into my trpc endpoint: https://tanstack.com/query/v5/docs/framework/react/guides/query-functions#queryfunctioncontext.

Is it possible to get this param passed in trpc procedure input with useInfiniteQuery? (for info i'm using trpc v11)
A query function can be literally any function that returns a promise. The promise that is returned should either resolve the data or throw an error.

All of the following are valid query function configurations:
Was this page helpful?