T
tRPC
Change Theme
Search Answer Overflow
Login
MlNl-PEKKA
Posts
Comments
T
tRPC
•
Created by thomasplayschess on 9/13/2023 in
#❓-help
Wrapping useQuery into a custom hook
Can I know why, this pattern is even used/needed? Why couldn't we just use the useQuery function, provided directly from the nested trpc object. Just curious.
74 replies
T
tRPC
•
Created by thomasplayschess on 9/13/2023 in
#❓-help
Wrapping useQuery into a custom hook
I've made this specifically for useQuery as the title says, let me know if this isn't what you asked for:
https://github.com/trpc/trpc/issues/6180#issuecomment-2452664657
74 replies