Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

React Redux Form v1.0.5

Compare
Choose a tag to compare
@davidkpiano davidkpiano released this 01 Oct 05:14
· 781 commits to master since this release

Fixes and Enhancements

  • An edge-case bug was fixed (before anyone reported it) where dynamically creating a new grandchild field (e.g., with dispatch(actions.focus('this.field.does.not.exist.yet'))) was erroneously re-validating the entire form. This would never occur with non-dynamic fields (i.e., given a proper initialState), but was fixed for the edge cases.
  • 🚧 Huge performance improvements! 🚧 Still a work in progress, the first improvement that showed a sizable reduction in rendering time was a change to <Control>'s shouldComponnetUpdate function that ignores the mapProps prop (which is assumed to be static. The dynamic way of defining mapProps was deprecated.) #427
  • The getField and getModel utility functions are now exposed (#424):
import { getField, getModel } from 'react-redux-form';

// ...

const mapStateToProps = (state) => ({
  user: getModel(state, 'path.to.user'),
  nameField: getField(state, 'path.to.user.name'),
});

// ...