You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In Rules of Controller does not react to changes ,
the issue is solved in v6 but it happen again in v7.
Expected behavior
the error should be removed after the rules were removed in the TextField
Codesandbox link (Required)
https://codesandbox.io/p/sandbox/react-hook-form-v7-controller-ts-forked-plnh38
I use a check box to change the rules in the TextField
required when checked
none when unchecked
shouldUnregister
does not help in this case.clearErrors
does not help as the rules are unchanged and the error will occur again after triggerBeta Was this translation helpful? Give feedback.
All reactions