-
In a project I have a Zod schema with a set of fields, and a ValidatedForm based on that schema. howeveer, I had made and error and had not used the same name for a required field in the schema and the form (say, field This had the result that the form would not submit (rightly so, since the required Is there a good strategy for debugging and understanding how a ValidatdForm when it is running? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yeah, that's a tricky situation. I usually just end up doing something like this: const DebugForm = () => {
const context = useFormContext();
return <pre>{JSON.stringify(context, null, 2)}</pre>
} |
Beta Was this translation helpful? Give feedback.
Yeah, that's a tricky situation. I usually just end up doing something like this: