Skip to content

[volhalink] Hw4#48

Open
volhalink wants to merge 5 commits intoromabelka:masterfrom
volhalink:hw4
Open

[volhalink] Hw4#48
volhalink wants to merge 5 commits intoromabelka:masterfrom
volhalink:hw4

Conversation

@volhalink
Copy link

  • HT4.1 Реализовать форму для добавления коммента (опция: с валидациями) в CommentList
  • HT4.2 Написать мидлвар для генерации случайных id
  • HT4.3 Переписать articles на ключ->значение
  • HT4.4 Добавлять комментарий к статье

@volhalink volhalink changed the title Hw4 [volhalink ]Hw4 Jul 15, 2018
@volhalink volhalink changed the title [volhalink ]Hw4 [volhalink] Hw4 Jul 15, 2018
const { text } = this.state
const error = this.validate(userName, text)
if (error) {
showError(error)
Copy link
Owner

Choose a reason for hiding this comment

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

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

success(state.articles[articleId], comment)
}

export default (store) => (next) => (action) => {
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