You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone, I'm new to the community, I've been using Formik over the last few weeks and have been loving it!
Recently I've been trying to create a FieldArray within a FieldArray within Formik using React-Native and haven't found an example which would work for me.
Basically, my data structure would look like the following -
I need the user to be able to edit, delete and add items to both exercises array and the sets array. Therefore I'm trying to nest the Sets FieldArray inside the exercises FieldArray.
Currently the data is getting passed through properly for the Exercises field array, but I can't seem to remove anything from the Sets fieldarray.
Any tips on how I could get this to work/design would be greatly appreciated! 💯
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone, I'm new to the community, I've been using Formik over the last few weeks and have been loving it!
Recently I've been trying to create a FieldArray within a FieldArray within Formik using React-Native and haven't found an example which would work for me.
Basically, my data structure would look like the following -
Users would be able to edit, delete or push to both exercises and the sets arrays. Therefore I'm trying to create two Fieldarrays as the code below.
I need the user to be able to edit, delete and add items to both exercises array and the sets array. Therefore I'm trying to nest the Sets FieldArray inside the exercises FieldArray.
Currently the data is getting passed through properly for the Exercises field array, but I can't seem to remove anything from the Sets fieldarray.
Any tips on how I could get this to work/design would be greatly appreciated! 💯
Beta Was this translation helpful? Give feedback.
All reactions