github redux-form/redux-form v4.1.0

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

This release comes with a minor behavior change around initializing values.

Behavior Change

Following a rousing debate on #370, it was concluded, #370 (comment), that:

  • Initializing a form should update both the fields' initial and value values, thus guaranteeing that pristine is true after initializing.
  • A form should only be initialized on mount with the contents of the initialValues prop if that particular form has never been initialized before. This way, if you disable destroyOnUnmount, you may remount the form component with an initialValues prop without having your previously initialized values blown away.

If you require that your form be initialized on mount even if it has previously been initialized, you will have to call this.props.initializeForm(values) manually.

Don't miss a new redux-form release

NewReleases is sending notifications on new releases.