Using setValue('field', {shouldValidate: true}), resolver is getting executed for nested field each time. That causes multiple executions & blocks the UI #12811
Unanswered
R-Mohammed-Hasan
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.
-
While trigger('field') makes it work. But setValue with shouldValidate is being used in our whole project & I can't change it manually every place. Is this a bug or am I using it incorrectly ?
Packages version:
"react-hook-form": "^7.18.0",
"yup": "^0.32.11"
Beta Was this translation helpful? Give feedback.
All reactions