⚠️ 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
- 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 keyform
. See Implementation Guide, Step 1. - Rather than having to know your
sliceName
when you are callingconnect()
, you simply map state to props withconnect(state => ({ form: state.form }))
_on all of your form components_. - You have to tell
reduxForm()
about your fields. This is the second parameter. e.g.ContactForm = reduxForm('contact', ['name', 'address', 'phone'], contactValidation)(ContactForm);
- The
sliceKey
prop is nowformKey
. - If you were doing anything involving Responding to Other Actions, that API has been simplified.