Replies: 1 comment
-
It should contain objects, not primitives.
|
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m trying to use
useFieldArray
to render a set of email inputs.It works great, but I’d like the initial state to be three empty inputs.
When I set the default values of the form to be
emails: ["", "", ""]
then I don’t see any inputs on the screen logging thefields
variable returned by the hook proves it to be empty.I assume this is because the values are falsy, since if
emails: ["a", "b", "c"]
then I do see inputs appear.How can I get what I want?
Possibly related to this
Beta Was this translation helpful? Give feedback.
All reactions