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

Wrong using of all() #9

Open
Chimochikhin opened this issue Dec 8, 2021 · 0 comments
Open

Wrong using of all() #9

Chimochikhin opened this issue Dec 8, 2021 · 0 comments

Comments

@Chimochikhin
Copy link

Chimochikhin commented Dec 8, 2021

yield all([

All must be used just like Promise.all.
For your reasons you must use Fork()

function* rootSaga() {
  yield all([
    call(runClockSaga),
    takeLatest(actionTypes.LOAD_DATA, loadDataSaga),
  ])
}
function* rootSaga() {
  yield fork(runClockSaga);
  yield takeLatest(actionTypes.LOAD_DATA, loadDataSaga),  
}
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