Yield All (parallel Requests) Into Queue In Redux Saga?
I have sagas: function* sagaA() { // accumulates all user requests // do stuff yield all(users.map((user) => call(sagaB, user)); yield put(SUCCESS ACTION); } f
Solution 1:
You can use regular for
loop:
function* sagaA() {
for(const user of users) {
yield call(sagaB, user);
}
yield put(SUCCESS_ACTION);
}
Post a Comment for "Yield All (parallel Requests) Into Queue In Redux Saga?"