Chore(challenges): separate code storage sagas
This commit is contained in:
9
common/utils/combine-sagas.js
Normal file
9
common/utils/combine-sagas.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Observable } from 'rx';
|
||||
|
||||
export default function combineSagas(...sagas) {
|
||||
return (actions$, getState, deps) => {
|
||||
return Observable.merge(
|
||||
sagas.map(saga => saga(actions$, getState, deps))
|
||||
);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user