This repository was archived by the owner on Aug 23, 2022. It is now read-only.
React Redux Form v1.0.5
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 properinitialState
), 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>
'sshouldComponnetUpdate
function that ignores themapProps
prop (which is assumed to be static. The dynamic way of definingmapProps
was deprecated.) #427 - The
getField
andgetModel
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'),
});
// ...