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 have a form where I'm using useFieldArray. This form also contain an unrelated input that I have to detect separately if it is dirty or not. !!dirtyFields.movie is working fine until I click on append (or any of the other buttons) because dirtyFields.movie is now an array with all of its properties. I don't get why useFieldArray is messing with this field.
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.
-
Hi,
I have a form where I'm using
useFieldArray
. This form also contain an unrelated input that I have to detect separately if it is dirty or not.!!dirtyFields.movie
is working fine until I click onappend
(or any of the other buttons) becausedirtyFields.movie
is now an array with all of its properties. I don't get whyuseFieldArray
is messing with this field.https://codesandbox.io/p/sandbox/react-hook-form-usefieldarray-forked-hysfn9
I have found an issue about it (#11402), but it doesn't mention what should be done to properly handle that.
Beta Was this translation helpful? Give feedback.
All reactions