Skip to content

Conversation

@kaflan
Copy link

@kaflan kaflan commented Aug 27, 2017

fix merge =)

});

const mapDispatchToProps = (dispatch) => ({

Copy link
Owner

Choose a reason for hiding this comment

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

легче просто { addUser } передать, вместо функции

Copy link
Author

Choose a reason for hiding this comment

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

Ну меня учили по другому и мне нравится, больше декларативности

export const ADD_USER = `${appName}/${moduleName}/ADD_USER`

export function addUser (email, first_name, last_name) {
return (dispatch) => {
Copy link
Owner

Choose a reason for hiding this comment

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

Зачем тебе здесь thunk?

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