[Implemented] Add a way for useFormContext() to return if the form is currently valid? #18
jakejscott
started this conversation in
Ideas
Replies: 3 comments 3 replies
-
I think I will add something like an For now you can get the job done with the const { fieldErrors } = useFormContext()
disabled={Object.keys(fieldErrors).length > 0} |
Beta Was this translation helpful? Give feedback.
2 replies
-
I added an |
Beta Was this translation helpful? Give feedback.
0 replies
-
It is now possible to track touched states as of 3.2.0. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to be able to have a submit button that is only enabled once the form is valid.
Beta Was this translation helpful? Give feedback.
All reactions