Redux-form: Previewing form in Modal from 'react-bootstrap'

Created on 28 Mar 2016  路  3Comments  路  Source: redux-form/redux-form

Hi, is there a way to stop automatic destroy action on unmount? I've got specific use case, where user can preview his cart in a modal (using react-bootstrap) like this:

<Modal show={showCart} onHide={toggleShowCart}><CartFrom /><Modal>

But when modal hides, redux-form/DESTROY gets triggered and user looses all items.

question

Most helpful comment

Hi! You can pass "destroyOnUnmount={false}" to your Form component to avoid form state loss whenever the component gets unmounted!

All 3 comments

Hi! You can pass "destroyOnUnmount={false}" to your Form component to avoid form state loss whenever the component gets unmounted!

Hi, thanks for coming by.

Please use StackOverflow for usage questions. This is the only way to ensure the same question doesn鈥檛 get asked many times in a row, and that folks who have the same question in the future will be able to find it. (Github search is pretty much useless.)

Sorry we couldn鈥檛 answer your question here. Please feel free to post a link to the StackOverflow question, and I鈥檒l be happy to try to answer it.

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

tejans24 picture tejans24  路  3Comments

Aaronius picture Aaronius  路  3Comments

yy-hh picture yy-hh  路  3Comments

jaraquistain picture jaraquistain  路  3Comments

ashwinvandijk picture ashwinvandijk  路  3Comments