TRPC query from Zod refine() #5606
Unanswered
BrendanC23
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to use TRPC inside of a Zod
refine()
call? I can't dotrpc.getUser.useQuery();
because refine isn't within a hook. Normally, I would usetrpc.useUtils()
, but that also can't be used because it is a hook.What is the best way to make a TRPC call in this case?
Beta Was this translation helpful? Give feedback.
All reactions