React Hook Form Dirty State not updating properly with field array
I am using the field array in react hook form. I have noticed that if I change the value of a field array item, then remove a previous item, there becomes a mismatch / sync issue between the dirty state and the form data sent by the handleSubmit method.
Value is not changing on onChange react-hook-form in nested array
I am want to handle nested array using react hook from that’s my task. I am able to do everything but the state is not setting on onChange while I am getting all the correct value.
This is how my array looks like