-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
We're using redux form to edit some pages, and I'm having some trouble re-initializing the form after saving.
The submit callback is
const mapDispatchToProps = (dispatch) => ({
submit: (page) => dispatch(updatePage(page)).then((page) => {
dispatch(initialize(`page/${page.slug}`, page, false));
dispatch(reset(`page/${page.slug}`));
return page;
});
});
This seems to be working as expected. The current and initial values for the form are equal, however the dirty
flag is set to 'true' until I reload the page.
Any ideas on why this might be happening?
This seems to be effecting the state as I expected, the form values stay the same, but the
skolmer and mistadikay
Metadata
Metadata
Assignees
Labels
No labels