'fields' from useFieldArray doesn't update in parent component when I have made a custom 'AppendFieldArrayButton'. which appends the field through a given 'fieldName' prop #10891
Replies: 0 comments
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.
-
EDIT: I have since learned what the error is. All is explained in the comment section of this. However, my problem still remains. How do I go about doing what I want to do? Do I just use the getValues() return instead??
Unfortunately, I don't have the source code on this laptop but I can recreate the issue.
All of this is in a FormProvider...
Something to note here is that this Button works just fine when the button is just a button in the PointsFormControl component, but I want a reusable component I can just plug the field name in to and update.
Pseudocode from memory
Beta Was this translation helpful? Give feedback.
All reactions