Skip to content

Commit

Permalink
Merged with changes from redux-form#2893
Browse files Browse the repository at this point in the history
  • Loading branch information
erikras committed May 9, 2017
2 parents 7bd780d + 8088c0b commit fc6fabe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/createReduxForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ const createReduxForm =
if (nextProps) {
if ((enableReinitialize || !nextProps.initialized) && !deepEqual(this.props.initialValues, nextProps.initialValues)) {
const keepDirty = nextProps.initialized && this.props.keepDirtyOnReinitialize
this.props.initialize(nextProps.initialValues, keepDirty)
this.props.initialize(nextProps.initialValues, keepDirty, {
lastInitialValues: this.props.initialValues,
})
}
} else if (this.props.initialValues && (!this.props.initialized || enableReinitialize)) {
this.props.initialize(this.props.initialValues, this.props.keepDirtyOnReinitialize)
Expand Down

0 comments on commit fc6fabe

Please sign in to comment.