Skip to content

Conversation

@winlx
Copy link

@winlx winlx commented Dec 24, 2017

Так и не понял почему не работает анимация, подозреваю виновен в этом react-dnd.

{connectDragSource(<h1>{person.firstName} <b>{person.lastName}</b></h1>)}
<h3>{person.email}</h3>
</div>
<TransitionMotion
Copy link
Owner

Choose a reason for hiding this comment

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

Так не выйдет, TransitionMotion анимирует появление элементов в списке. А у тебя он появляется вместе с с самим TransitionMotion. Надо на уровне списка анимацию делать

}

const createSocket = () => eventChannel(emit => {
const callback = user => emit(user || 'null')
Copy link
Owner

Choose a reason for hiding this comment

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

'null' так себе решение, лучше { user }

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