Replies: 1 comment 7 replies
-
@keanan @bluebill1049 : It seems "getProxyFormState" function overrides default state of flag "isValid" and causes wrong default validation handling since "isValid" should be "false" but now is always "all" and be a truthy value. react-hook-form/src/logic/getProxyFormState.ts Lines 17 to 19 in ce16d2f @bluebill1049 : Could we add a check "isString" for "_proxyFormState[_key]" to avoid overriding wrong data type ? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am not sure if this is an issue/bug however I am unable to get async validation working correctly with
isValid
from formState (using mode: "onChange").It seems that when using
isValid
the async validator is called immediately on first render and then twice on eachonChange
event, this occurs even with other inputs which do not have an async validation rule attached.When removing
isValid
the validation works as intended.Please find a code sample here
Any suggestions or solutions are appreciated, thank-you.
Beta Was this translation helpful? Give feedback.
All reactions