setFieldValue shouldValidate validates whole form instead of the given field #4015
Unanswered
runoncedev
asked this question in
Q&A
Replies: 0 comments
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.
-
I'm calling
setFieldValue
withshouldValidate
(docs):And it seems to be validating the whole form instead of just
foo
field, is this the expected behavior?As a workaround I tried using
validateField
:But
validateField
doesn't have acess to the updated value offoo
, so it won't work.Any suggestions? I'm using
v2.2.10
withvalidationSchema
.Beta Was this translation helpful? Give feedback.
All reactions