useFieldArray
replace
method updates useForm
values but not input values
#12339
Unanswered
ronronscelestes
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Context
Hi! I have an issue with
useFieldArray
but I'm not 100% it's an issue material - it might be me not using it properlycodesandbox link: https://codesandbox.io/p/sandbox/react-hook-form-fields-array-checkboxes-ypl5ts
What I expect
Select all
checkboxchecked
andduration
values withreplace
methodWhat I get
setValue
manages to updatenotArrayCheckbox
valuereplace
does not updateracks
valuesWhat I'm looking for
I'd like to know if I'm missing something and not using replace properly, or if it's a real issue with
replace
that I could report?Any help will be appreciated 🙏
Beta Was this translation helpful? Give feedback.
All reactions