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
Read more
What is React?
November 06, 2022
ReactJSHow to programmatically trigger click event in React?
November 06, 2022
ReactJS