Skip to content

Hw 7#88

Open
ls16 wants to merge 3 commits intoromabelka:masterfrom
ls16:hw-7
Open

Hw 7#88
ls16 wants to merge 3 commits intoromabelka:masterfrom
ls16:hw-7

Conversation

@ls16
Copy link

@ls16 ls16 commented Feb 11, 2018

No description provided.

comments: []
})

const ReducerState = Record({
Copy link
Owner

Choose a reason for hiding this comment

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

Хорошо, но я бы хранил комменты в comments.entities, по сути это те же сущности

if (!page) return null;
const commentIds = page.get('comments')
return {
commentsLoading: page.get('commentsLoading'),
Copy link
Owner

Choose a reason for hiding this comment

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

ты же сделал Record, можно просто page.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.

3 participants