How to debug Tanstack Form and Zod Schemas? #998
Unanswered
vicentematus
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
-
I'm trying to understand how to debug validation states when using TanStack Form with Zod. Specifically, I'd like to:
This is my Zod Schema:
And then I use it on my React component
How can I debug like via
console.log
for invalid states?EDIT: For reference, I tried with console logging
form.state
, but I don't know if there's a more straight forward way to debug.Beta Was this translation helpful? Give feedback.
All reactions