react-hook-form: fields from useFieldArray with init values not working in 6.4.0 but in v. 5.7.2
Describe the bug
I’m using fields from the useFieldArray method which is initialized with default values.
However in v. 5.7.2 the default values are showing up but not in v. 6.4.0…
To Reproduce Look in the Sandbox:
Codesandbox link (Required) see above
Expected behavior like in v. 5.7.2 show up init variables
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (7 by maintainers)
I was thinking something like this: https://codesandbox.io/s/charming-golick-oz1oe?file=/src/Transactions.js
It seems to work. Then I can get around it by creating my own context with the defaultValues.
Thanks for a great library!