zaguiini / formik-wizard

A multi-step form component powered by formik and react-albus
MIT License
86 stars 26 forks source link

Set loading indicator for steps views #30

Open Darksoulsong opened 4 years ago

Darksoulsong commented 4 years ago

I have a wizard working just like the example, and I'm trying to find out how to set a loading variable that can be read inside the form views. The idea is to pass a "isLoading" flag to the form, so I can animate the field background and set disable to true.

I'm making my server calls at the index file (the one that instantiates FormikWizard and passes the options to it. Any ideas would be awesome!

zaguiini commented 4 years ago

You currently have the isSubmitting flag that should attend the exact use case you're describing. Can you try it?