Skip to content

Conversation

@evpozdniakov
Copy link

No description provided.

return state.setIn(['entities', payload.personId, 'events'], payload.events)

case DELETE_EVENT_SUCCESS: {
return state.entities.reduce((res, person) => {
Copy link
Owner

Choose a reason for hiding this comment

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

Это можно упростить, поиграйся больше с immutable

return state.update('selected', selected => selected.add(payload.uid))

case DELETE_EVENT_SUCCESS:
return state
Copy link
Owner

Choose a reason for hiding this comment

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

просто deleteIn

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