- Fixed bug where
INITIALIZE
action was overwriting the existing value rather than only setting a newinitial
value. Discussion on #370. - Fixed bug that was causing problems with complex field values, like arrays or objects.
- Added new Complex Values example to demonstrate complex values functionality.
Breaking Changes
You will only have breaking changes if you are dispatching the initialize()
action manually.
In order to fix the above bugs, it was required that the fields
array be given to the initialize()
action creator. It must be the same as the array of fields passed as a config parameter to reduxForm()
or as a prop to your decorated component.
v3.x
initialize(form:String, data:Object)
v4.x
initialize(form:String, data:Object, fields:Array<String>)