t
tRPC
N
tRPC
•
2y 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
)
Query Functions | TanStack Query Docs
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
:
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Optimistic update on infinite query
L
Lautaro_dapin / ❓-help
3y ago
Bi directional infinite query example with prisma
T
taylor.presto / ❓-help
4y ago