Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment sagas files #6

Open
Aarbel opened this issue Nov 20, 2018 · 0 comments
Open

Comment sagas files #6

Aarbel opened this issue Nov 20, 2018 · 0 comments

Comments

@Aarbel
Copy link

Aarbel commented Nov 20, 2018

https://github.com/kuy/redux-saga-chat-example/blob/master/src/client/sagas.js

Hi @kuy, thanks a lot for this example !

Few parts are quite confusing :

function* read(socket, me) {
    const channel = yield call(subscribe, socket, me);
	
    while (true) {
		// Give examples to understand better the use of redux-saga channels
		// It's never triggered for me
        const action = yield take(channel);
        yield put(action);
    }
}

Thanks a lot for your help !

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

No branches or pull requests

1 participant