Skip to content

Conversation

@algv
Copy link

@algv algv commented Nov 12, 2017

eventChannel для аутентификации не заработал, не понял почему. Ошибка:
Error: in eventChannel: subscribe should return a function to unsubscribe

Но в документации, вроде это и написано:

Returns non-null function() The unsubscribe function for the observer.

}

const createAuthSocket = () => eventChannel(emit => {
const authChannel = eventChannel(emit => {
Copy link
Owner

Choose a reason for hiding this comment

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

почему ты 2 раза eventChannel пытаешься создать?


export const cancelRealtimePeopleSyncSaga = function * (action) {
if (action && action.payload && action.payload.pathname !== '/people') {
const watcher = yield fork(realtimePeopleSyncSaga);
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.

2 participants