How do you validate initial default values? #2348
Unanswered
thomaschaaf
asked this question in
Q&A
Replies: 2 comments 1 reply
-
that's correct, or you can set mode to |
Beta Was this translation helpful? Give feedback.
1 reply
-
For me |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is the correct way to validate the defaultValues at the start using a useEffect using
trigger
like this? Or is there another way to trigger the validation of the defaultValues?https://codesandbox.io/s/react-hook-form-basic-validation-mtbz6?file=/src/index.js:385-476
Beta Was this translation helpful? Give feedback.
All reactions