T
TanStack3y ago
multiple-amethyst

How to type 4th generic of UseQuery

Can s.o help me to type 4th generic(any). I could not solve this problem.
No description
1 Reply
wise-white
wise-white3y ago
Don't provide the generics - infer them: https://tkdodo.eu/blog/react-query-and-type-script
React Query and TypeScript
Combine two of the most powerful tools for React Apps to produce great user experience, developer experience and type safety.

Did you find this page helpful?