Why doesnt useFieldArray
get the values from useForm
's values
prop on mount?
#12137
Unanswered
paulleonartcalvo
asked this question in
Q&A
Replies: 1 comment
-
i have the same issue |
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 was using
useForm
anduseFieldArray
like in the documentation, and when i get formvalues
from my props, all the Controllers get their correct values butuseFieldArray()
's fields are empty even though the array is clearly populated in the form values. Is this behavior intended?My use case is editing a previously submitted form. So i fetch the data from an api then render a Form component and pass in the
values
. I expected thefields
property to be initially populated with the values from that prop.Beta Was this translation helpful? Give feedback.
All reactions