Skip to content

Conversation

@Firsov974
Copy link

Не получилось сделать ДЗ

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

id: randomId
}
}
return state.updateIn(
Copy link
Owner

Choose a reason for hiding this comment

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

setIn, скорее

// return state.setIn(['entities', payload.id, 'loading'], true)
return state.set('loading', true)

case LOAD_ALL_COMMENTS + SUCCESS:
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