Nested array usage of useFieldArray #4329
Unanswered
ao-Barbosa
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
-
Hi!
I've been having some issues with the usage of Form and useArrayField when it comes to nested arrays.
For example, given the following schema and form:
I can easily loop through the groups by using
However, once i try to do the same for the group items i get into some problems:
I would very much prefer continue using useFieldArray if possible, as it's methods (append, remove, update....) are what i need the most, and doing these operations by hand using setValue seems like it would be a pain.
How would i be able to make this secondary mapping work?
Beta Was this translation helpful? Give feedback.
All reactions