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
-
Hey,
Really loving this library. Previously used
react-hook-form
and 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
FieldArrayApi
the only choice I'd have it topop
everything and thenpush
everything on, is that correct?Updating the value with
form.setValue
meansuseFieldArray
doesn't seem to reflect the updated value so I assume theFieldArrayApi
methods are needed for this to happen.Beta Was this translation helpful? Give feedback.
All reactions