KaiHotz / react-formik-ui

A simple component library, composed out of pure HTML form elements to make your live easier composing forms with Formik and React
https://kaihotz.github.io/react-formik-ui/
MIT License
164 stars 15 forks source link

Way to send only the updated field values using formik #57

Closed sharadkamal closed 3 years ago

sharadkamal commented 3 years ago

Hi I want to send only the changed values over to the API call, is there a way to send only the changed field values over a api put request? (is there a prop like dirty?)

KaiHotz commented 3 years ago

Hi, sorry not that i know of, Formik gives you always all the values back in the onSubmit method. Formik does not identify what values have been changed. you might need to implement some solution of your own here. I recommend that you have a look at the Formik documentation https://formik.org/docs/overview