How to type 4th generic of UseQuery
Can s.o help me to type 4th generic(any). I could not solve this problem.

1 Reply
wise-white•3y 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.