Field Array with just string entries instead of object entries #9481
Unanswered
douglasrcjames
asked this question in
Q&A
Replies: 2 comments 1 reply
-
This is a limitation as each input will need a unique id (key) for react to recognise each input group. However, if you don't need those actions (swap, move), you can build your own. |
Beta Was this translation helpful? Give feedback.
1 reply
-
i wish the detail that react-hook-form only supports array of objects but not primitives was written somewhere in the docs... spent almost two days, long convos with AI that eventually led to a hint to find this limitation 🥲 |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hi! Love this library so far, but I have a situation in my system where I need the field array to pass an array of just strings instead of an array of objects, such as:
Current setup:
Desired setup:
What is the best way to achieve this with react-hook-forms?
Beta Was this translation helpful? Give feedback.
All reactions