Skip to content

Hometask 06#84

Open
tursumbekov wants to merge 9 commits intoromabelka:masterfrom
tursumbekov:hometask_06
Open

Hometask 06#84
tursumbekov wants to merge 9 commits intoromabelka:masterfrom
tursumbekov:hometask_06

Conversation

@tursumbekov
Copy link

No description provided.

const ReducerRecord = Record({
entities: arrToMap([], CommentsRecord),
loading: false,
loaded: 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, ведь ты для конкрентной статьи загружаешь

case LOAD_COMMENTS + SUCCESS:
return state
.set('loading', false)
.set('loaded', true)
Copy link
Owner

Choose a reason for hiding this comment

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

Почему loaded === true, ведь ты загрузил только для одной статьи?

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