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.


July 12, 2022
179