Skip to content

Ht4#52

Open
b059ae wants to merge 2 commits intoromabelka:masterfrom
b059ae:HT4
Open

Ht4#52
b059ae wants to merge 2 commits intoromabelka:masterfrom
b059ae:HT4

Conversation

@b059ae
Copy link

@b059ae b059ae commented Jul 15, 2018

No description provided.

case ADD_COMMENT:
articlesState
.find((article) => article.id === payload.articleId)
.comments.push(commentId)
Copy link
Owner

Choose a reason for hiding this comment

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

не мутируй стейт!

console.log('---', 'dispatching uuid', action)
console.log('---', 'generate uuid', uuidv4())
switch (action.type) {
case ADD_COMMENT:
Copy link
Owner

Choose a reason for hiding this comment

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

через мидлвары будет проходить каждый экшин, они должны быть максимально общими, завязывать на конкретные экшины - не лучшее решение

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