How Redux Form initialValues get updated from state?
You need to add enableReinitialize : true setting.
1 2 3 4 | const InitializeFromStateForm = reduxForm({ form: 'initializeFromState', enableReinitialize : true })(UserEdit) |
If your initialValues prop gets updated, your form will update too.
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.