Skip to content

Conversation

@maximgatilin
Copy link

Home task 4 completed

return state.update('selected', selected => selected.add(payload.uid))
case DELETE_EVENT_SUCCESS:
return state
.deleteIn(['entities', action.payload.uid]);
Copy link
Author

Choose a reason for hiding this comment

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

@romabelka Правильно ли здесь применен .deleteIn? (Нет опыта с ImmutableJS)

return state.update('selected', selected => selected.add(payload.uid))
case DELETE_EVENT_SUCCESS:
return state
.deleteIn(['entities', action.payload.uid]);
Copy link
Owner

Choose a reason for hiding this comment

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

Да, единственное что - лучше бы из person тоже удалять этот ивент.

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