Skip to content

Conversation

@winlx
Copy link

@winlx winlx commented Dec 13, 2017

No description provided.

* */

export function addPerson(person) {
export function addPerson(person, resolve) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не очень мне нравиться идея передавать с action функцию-резолвер, которая потом будет менять какое-то состояние

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Забыл про action creator reset из redux-form, сделал сброс формы в саге.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants