tRPCttRPC
Powered by
asliwinskiA
tRPC•3y ago•
1 reply
asliwinski

Is there a way to alter the query key generated by trpc?

I want to pass a boolean flag (
initial
initial
) to the backend saying if it's a first call of a given procedure. I don't want trpc to create two separate queries because of this. Is there a way to remove this
initial
initial
parameter from the generated query key? Or is there perhaps a better way to tell the backend it's the first fetch?
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Query tRPC the right way
ippoIippo / ❓-help
3y ago
Is there a way to use a more updated version of React Query in tRPC?
MikeyMMikey / ❓-help
3y ago
Is there a way to use TRPC React Query Integration with Nanostores instead of the Context API?
quiet-anteater-9502Qquiet-anteater-9502 / ❓-help
2y ago