npm formik 2.0.5

latest releases: 2.4.6, 2.4.5, 2.4.4...
4 years ago

Bugfixes

  • Changed onSubmit behavior to mimic v1 if the function is synchronous. This means fixes a bug where isSubmitting was never toggled. To summarize: If onSubmit is async, then Formik will automatically set isSubmitting to false on your behalf once the submission is completed. This means you do NOT need to call formikBag.setSubmitting(false) manually in v2. HOWEVER, if your onSubmit function is synchronous (e.g. v1), then you need to still call setSubmitting(false) on your own. (#1987)
  • Fix checkbox bug with null value (#2027)
  • Update validateFormWithLowPriority with to use fresh values (#2025)

Commits

v2.0.4...v2.0.5

Don't miss a new formik release

NewReleases is sending notifications on new releases.