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.
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.
Most helpful comment
Hi! You can pass "destroyOnUnmount={false}" to your Form component to avoid form state loss whenever the component gets unmounted!