How to handle zodErrors?
Anyone here using zod and react query? How are you handling zod errors? I assume with a try/catch but where in the code should it be handled?
1 Reply
sunny-green•3y ago
No try/catch necessary - you'll get those errors in the
error
field returned from useQuery