How Redux Form initialValues get updated from state?

You need to add enableReinitialize : true setting.

const InitializeFromStateForm = reduxForm({
form: 'initializeFromState',
enableReinitialize: true,
})(UserEdit);

If your initialValues prop gets updated, your form will update too.


Author of content
Edit this page

Made by Michael Sakhniuk

Twitter