npm formik 2.0.1-rc.2

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

Improvements 🔥

  • Better build output thanks to tsdx v0.6.0
  • Rearchitected validation and to make it fully backwards compatible with v1
  • Formik now uses the new scheduler package to improve performance. Validation now comes in 2 flavors. Validation triggered imperatively (via validateForm or validateField) and prior to submit will run at the default priority (same behavior as before). Formik will now schedule validation that run as a side effect in response to calling handleChange, setFieldValue, setValues, handleBlur, setFieldTouched, or setTouched at low-priority. The goal is tell the browser that these validation updates should never block user input (changes to values). Since we are using scheduler directly, it's been added to Formik's deps. For power users, you should watch Brandon Dail's React Europe talk about scheduler.

Commits

  • Upgrade to tsdx 0.6.0 64ab584
  • [v2]: Distinguish between high/low priority validation (#1522) 123e392

v2.0.1-rc.1...v2.0.1-rc.2

Don't miss a new formik release

NewReleases is sending notifications on new releases.