thomasplayschess
Wrapping useQuery into a custom hook
I'm trying to wrap
useQuery
into a custom hook (as I have some legacy code that I need to run before). Example:
I'm able to write the JavaScript code, but I have trouble getting the TypeScript types right. I have more information in the Stackoverflow question here: https://stackoverflow.com/q/77096846
Thanks for any help ❤️74 replies