Files
freeCodeCamp/common/app/utils/combine-sagas.js
2016-07-28 23:40:01 -07:00

10 lines
223 B
JavaScript

import { Observable } from 'rx';
export default function combineSagas(...sagas) {
return (actions$, getState, deps) => {
return Observable.merge(
sagas.map(saga => saga(actions$, getState, deps))
);
};
}