Hello! Tell me. I use redux-form and I have a two-step form. I need in the second step to render the input value entered in the first step. The fact is that the values ​​in the redux-form are cleared when the form is successfully submitted, and I cannot get them in the second step. You can write this value to the stop separately in the first step, but I would not like to duplicate the data.

How to be in this case?

    1 answer 1

    Based on the example on the official site https://redux-form.com/7.2.0/examples/wizard/, each step of the form must be designed in such a way that the data is stored during all steps:

    export default reduxForm({ form: 'wizard', // <------ same form name destroyOnUnmount: false, // <------ preserve form data forceUnregisterOnUnmount: true, // <------ unregister fields on unmount validate })(WizardFormFirstPage)