Why initially isValid = false ? #8147
-
|
I am creating new from using Simple demo: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
From RHF source code: let _formState = {
...
isValid: false,
...
}; |
Beta Was this translation helpful? Give feedback.
-
|
this sucks |
Beta Was this translation helpful? Give feedback.
falseis the default value forisValidform state. You see it on the first render and after the form has been evaluated, it's set to the correct value (truein your case) on the next render.From RHF source code: