Morley
Wrapping useQuery into a custom hook
Thanks! That's exactly what I was looking for. Basically the use-case is a generator of sorts that takes in a query procedure and spits out some DataTable components that are bound to those types. Much appreciated.
74 replies
Wrapping useQuery into a custom hook
Trying to bring some awareness to this, as it's super frustrating that the needed types were previously exposed:
https://github.com/trpc/trpc/discussions/6171
74 replies