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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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