react-final-form-hooks
react-final-form-hooks copied to clipboard
Support for arrays
Feature request
I'm trying to add a small array to one of my forms, but it doesn't seem to be supported at the moment.
Currently, when I to useField
on a field that has an array in initialValues
, the returned field will have an empty string as .input.value
instead of the array passed with initialValues
.
Any chance of supporting this? Maybe with a useArrayField()
? 🤔
@LinusU - did you try useFieldArray
?
@et doesn't work because useFieldArray uses a different framework and requires form state to be passed down via context. This library doesn't pass down form state via context.
Any updates on this? This would be really helpful!
Any updates? I have the same limitation in my project. I would have to handle arrays outside final form hooks completely