Iterating over an array and setFieldValue doesn't work #2856
Unanswered
Kevin-Carlos
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I have a use case where I've set up a drag n' drop file upload that parses .csv and returns me an array of key value pairs.
Minimal reproduction:
but only the last item within
data
gets reflected into the form values.I've tried pre-emptively submitting the form between each as well as a couple other solutions that ended up not working as well.
Any help and insight would be great.
Formik v2.1.3
Beta Was this translation helpful? Give feedback.
All reactions