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
I did not provide a particular field in defaultValues but I registered that field in the form. The form is always dirty (form.formState.isDirty=true), even though there are no dirty fields (form.formState.dirtyFields={}). This happens regardless of shouldUnregister being true of false. Curiously, I can't reset the form then, and that fields value is always set to undefined.
The text was updated successfully, but these errors were encountered:
@vincaslt I think I had the same issue but it was resolved by using defaultValues for all fields.
I don't think this is a remix-hook-form issue though. It is probably a react-hook-form issue. Can you check if the same happens if you use react-hook-form directly?
I did not provide a particular field in
defaultValues
but I registered that field in the form. The form is always dirty (form.formState.isDirty=true
), even though there are no dirty fields (form.formState.dirtyFields={}
). This happens regardless ofshouldUnregister
being true of false. Curiously, I can't reset the form then, and that fields value is always set toundefined
.The text was updated successfully, but these errors were encountered: