Skip to content

Conversation

@romabelka
Copy link
Owner

No description provided.


/*тут бы еще хотелось проверять, есть ли уже такой e-mail, но я вот не знаю как лучше подрубить стор?
как то так?
export default connect(state => ({..}))(reduxForm({
Copy link
Owner Author

Choose a reason for hiding this comment

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

Да, затем connect передаст пропсами список email-ов, а просы можно прочитать во встором аргументе validate функции


switch (type) {
case ADD_USER_SUCCESS:
return state.set('user', state.user.push(payload))
Copy link
Owner Author

Choose a reason for hiding this comment

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

можно update


export function addUser(values) {

return (dispatch) => {
Copy link
Owner Author

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