jaredpalmer / formik-effect

Declarative component for managing side-effects in Formik forms. 580 bytes
https://npm.im/formik-effect
MIT License
166 stars 13 forks source link

Make ""I WILL NOT USE THIS TO STORE FORMIK STATE ELSEWHERE IN MY APP."" more precise #8

Closed h0jeZvgoxFepBQ2C closed 6 years ago

h0jeZvgoxFepBQ2C commented 6 years ago

Could you explain what

"I WILL NOT USE THIS TO STORE FORMIK STATE ELSEWHERE IN MY APP."

actually means?

F.e. I would like to use effects to make a realtime search, where you enter a search query and get below a list of results (triggered via redux / redux-observable) - therefore I need to use the onChange event, which is not included in formik as it seems - but in this addon?

Is my desired behaviour not recommended? :D

jaredpalmer commented 6 years ago

Trying to store interim Formik state (i.e. anything but initialValues and the values you get back from onSubmit) will inevitably fail.