Skip to content

Conversation

@maximgatilin
Copy link

Home task 5.


auth.onAuthStateChanged(callback)

// empty function for unsubscribe
Copy link
Owner

Choose a reason for hiding this comment

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

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

let task = yield fork(realtimePeopleSyncSaga)

while (true) {
const {payload: {pathname}} = yield take(LOCATION_CHANGE);
Copy link
Owner

Choose a reason for hiding this comment

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

Тогда выйди из самой саги, а то она будет вечно висеть на yield take(LOCATION_CHANGE)

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