Replace a full array #420
Unanswered
dan-gamble
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.
-
Hey,
Really loving this library. Previously used
react-hook-formand this just feels a lot simpler!One thing I'm trying to do is fully replace the contents of an array. Looking at all the methods on
FieldArrayApithe only choice I'd have it topopeverything and thenpusheverything on, is that correct?Updating the value with
form.setValuemeansuseFieldArraydoesn't seem to reflect the updated value so I assume theFieldArrayApimethods are needed for this to happen.Beta Was this translation helpful? Give feedback.
All reactions