npm formik 1.0.0-beta.3

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

What's new?

  • TypeScript 2.9.1
  • Fixed bug with FastField x React 16.4
  • Better IE support #689
  • Added react storybook
  • submitForm now returns a Promise (Very useful for testing)
  • Better independent Field-level validation All mounted field-level validation functions (e.g. <Field validation={() => ..}/>) now run prior to top-level validation and validationSchema when submit is attempted. The results of the field-level validations are then deeply merged with the results of any top-level validation. Previously, people who used field-level validation and set validateOnChange and validateOnBlur to false would not have their validations run prior to submission. This fixes that.
  • Removed react-lifecycles-compat as a dep because we are no longer using getDerivedStateFromProps

What's coming next?

  • Add isValidating
  • Add fields or mountedFields. This is a map of currently mounted Field and FastField inputs.
  • Deprecate dirty and replace with isDirty
  • Discuss adding initialErrors, initialTouched, and initialStatus, and initialState
  • Fix setIn cloning
  • Document how to use shouldComponentUpdate to boost performance on gigantic forms
  • Get rid of enzyme from the codebase
  • Suspense!
  • Website

Commits:

Don't miss a new formik release

NewReleases is sending notifications on new releases.