github redux-form/redux-form v0.3.0

latest releases: v8.3.10, v8.3.9, v8.3.8...
8 years ago

⚠️ BREAKING CHANGES ⚠️

☑️ Completely reworked internal state structure to combine all redux-form reducers into one reducer.
☑️ Moved field list from createFormReducer() call to reduxForm() call, where it should be (i.e. with the component).
☑️ Fixed #30 with the introduction of another HOC. See Calculating props from Form Data.

Migration Guide

  1. Instead of calling createFormReducer() for each of your forms, you just put a single reducer, imported from { reducer } from 'redux-form' into your reducers, with the key form. See Implementation Guide, Step 1.
  2. Rather than having to know your sliceName when you are calling connect(), you simply map state to props with connect(state => ({ form: state.form })) _on all of your form components_.
  3. You have to tell reduxForm() about your fields. This is the second parameter. e.g. ContactForm = reduxForm('contact', ['name', 'address', 'phone'], contactValidation)(ContactForm);
  4. The sliceKey prop is now formKey.
  5. If you were doing anything involving Responding to Other Actions, that API has been simplified.

Don't miss a new redux-form release

NewReleases is sending notifications on new releases.