Minor Improvement
Fully backwards compat
- Added more docs and FAQ's about submission process
- Documented
connect()
higher-order component - Added
isValidating: boolean
to Formik state!!! #753isValidating
is now set to true whenever validation is run. This includes validation before submission. This means that you can display UI in response to more state combinations. Mostly, ifisSubmitting
istrue
andisValidating
is false, you can now know you are going executing you submission handler. When bothisSubmitting
andisValidating
arefalse
, you know you are back to idle state. Remember, thatisSubmitting
still means "is submit being attempted?" so you can / should still use it to prevent double submits by using it to disable buttons etc.
What's next?
- Deprecate
submitCount
forsubmitAttemptCount
- Add
submitSuccessCount
andsubmitFailCount
- 1.0 Launch
- Open discussion about starting to fully unify the the API's for Formik and withFormik to simplify the documentation.