Skip to content

ht5#55

Open
zhukosvinka wants to merge 5 commits intoromabelka:masterfrom
zhukosvinka:dz5.1
Open

ht5#55
zhukosvinka wants to merge 5 commits intoromabelka:masterfrom
zhukosvinka:dz5.1

Conversation

@zhukosvinka
Copy link

смотреть последний коммит

return {
type: LOAD_COMMENTS,
callAPI: '/api/comment',
id
Copy link
Owner

Choose a reason for hiding this comment

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

лучше, все же, прятать id в payload, и /comment загружает сразу все комменты


const ReducerState = Record({
entities: arrToMap([], CommentsRecord),
loading: false,
Copy link
Owner

Choose a reason for hiding this comment

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

здесь не достаточно повесить loading на весь comments, ведь ты для конкрентной статьи загружаешь

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