Skip to content

Conversation

@gladk0ff
Copy link

выполнено=)

const validate = ({firstName,lastName, email}) => {
//debugger
let errors = {}
const validateName = (param,label)=>{
Copy link
Owner

Choose a reason for hiding this comment

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

зачем тебе каждый раз создавать эту функцию? Вынеси в другой скоуп

export function addUser(email, lastName,firstName) {

return (dispatch,getState) => {
let _users=[...getState()[moduleName].users]
Copy link
Owner

Choose a reason for hiding this comment

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

Зачем ты делаешь это в AC? Это работа для редюсера

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