Skip to content

How to debug and understand errors like using the wrong name on a field? #242

Answered by airjp73
zayenz asked this question in Q&A
Discussion options

You must be logged in to vote

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>
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zayenz
Comment options

Answer selected by zayenz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants