Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for arrays #49

Open
LinusU opened this issue Jun 12, 2019 · 4 comments
Open

Support for arrays #49

LinusU opened this issue Jun 12, 2019 · 4 comments

Comments

@LinusU
Copy link

LinusU commented Jun 12, 2019

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()? 🤔

@et
Copy link

et commented Jul 20, 2019

@LinusU - did you try useFieldArray?

@Togrias
Copy link

Togrias commented Aug 14, 2019

@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.

@trdaya
Copy link

trdaya commented Aug 10, 2020

Any updates on this? This would be really helpful!

@guilhermeKodama
Copy link

Any updates? I have the same limitation in my project. I would have to handle arrays outside final form hooks completely

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants