Where can I add a query key?
I tried to follow as in useQuery from Tanstack, but Typescript started complaining
3 Replies
Complaining how?
@Nick Lucas no overload... I want use query keys only for caching purposes
So I’m not what you’re saying you’re doing tracks with the code sample you’re giving, you’re not actually trying to set query keys there?
Query keys are managed by tRPC so you don’t need to worry about them, caching works out of the box