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.
-
Hello,
We have a project using react-hook-form, we are having quite nice time with it.
But there are some cases where we use "isDirty" that does not work as expected.
From my understanding, there are two cases where "isDirty" should be true :
In each case, if we compare "getValues()" with formState.defaultValues, we should find what's wrong quite fast.
But we have two cases where getValues() is equal to formState.defaultValues, but isDirty is still "true", which sounds quite magic to us.
Is there any case we've missed ?
Thanks a lot.
Kevin
Beta Was this translation helpful? Give feedback.
All reactions