Skip to content

Conversation

@aplb
Copy link

@aplb aplb commented Nov 12, 2017

No description provided.

};

componentWillUnmount() {
this.props.cancelPeopleSync();
Copy link
Owner

Choose a reason for hiding this comment

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

задача стояла делать это на изменениие роута, а то, что там есть какой-то компонент - это частный случай. Тогда и запускать синхронизацию стоит здесь

}
emit({ user })
})
return () => {}
Copy link
Owner

Choose a reason for hiding this comment

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

Вот это не очень хорошее решение. Вернии настоящую функцию для отписки


yield put({
type: SIGN_IN_SUCCESS,
payload: { user }
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.

3 participants