Redux-form: Persist data when using react-widgets for a wizard form

Created on 8 Jul 2016  路  3Comments  路  Source: redux-form/redux-form

So, I am using react-widgets using a Multiselect wrapper in a wizard form. When the form is filled and the next button is clicked, the data is not being persisted and the field becomes blank when a back button is clicked.

Is there an additional mechanism to make this happen? I am using using 6.0.0-rc.2.

Thanks

Most helpful comment

For wizards, you need to set destroyOnUnmount to false, or it will automatically clear after submitting.

export default reduxForm({
    form: 'wizard',
    destroyOnUnmount: false,
    validate: validateForm
})(somePage)

Refer to the updated rc.4 examples and docs for more info.

All 3 comments

For wizards, you need to set destroyOnUnmount to false, or it will automatically clear after submitting.

export default reduxForm({
    form: 'wizard',
    destroyOnUnmount: false,
    validate: validateForm
})(somePage)

Refer to the updated rc.4 examples and docs for more info.

I hope @fini's hint helped you @tejans24.

In case you need further help with React Widgets and Redux Form integration, we recommend you to ask again at StackOverflow, using the redux-form tag.
As usual, don't forget to explain your question well and show what you've got so far!

This is because the GitHub issue tracker is better suited for discussions related to bugs and improvements of Redux Form.
Meanwhile, StackOverflow is better at keeping popular questions visible, while separating feature-related questions from help-related questions.

Thanks for using Redux Form!

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yy-hh picture yy-hh  路  3Comments

rob-mcgrail picture rob-mcgrail  路  3Comments

anyong picture anyong  路  3Comments

tylergoodman picture tylergoodman  路  3Comments

jaraquistain picture jaraquistain  路  3Comments