Skip to content

Conversation

@algv
Copy link

@algv algv commented Nov 8, 2017

No description provided.

const item = monitor.getItem()
const dropResult = monitor.getDropResult()

if (dropResult) {
Copy link
Owner

Choose a reason for hiding this comment

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

Можно и так, но мне кажется, что тут как-то много логики будет сосредоточено. Я бы вынес это в компонент Корзины

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

case DELETE_EVENT:
return state.deleteIn(['entities', 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