tRPCttRPC
Powered by
atiA
tRPC•3y ago•
4 replies
ati

Using react-query parameters in tRPC for useQuery

Hello, the useQuery from react-query can take parameters such cacheTime, staleTime, refetchOnWindowFocus etc. , but as far as I can see we cannot give these parameters to the useQuery provided by tRPC. In this case, how can we set these values, and what are the defaults for such values?

Thank you.
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

Using tRPC (createCallerFactory) with react-query.
lunacraftsLlunacrafts / ❓-help
2y ago
Using both tRPC React client AND tRPC React Query client
anton.johanssonAanton.johansson / ❓-help
3y ago
React-query options not available in trpc/react-query?
moustachefulMmoustacheful / ❓-help
2y ago
Can I perform react query queries without using a trpc procedure, using useQuery standalone
MattèoMMattèo / ❓-help
2y ago