Chore(challenges): separate code storage sagas

This commit is contained in:
Berkeley Martinez
2016-08-13 18:09:32 -07:00
parent c3d9d48b01
commit 5fb2802e32
5 changed files with 38 additions and 15 deletions

View 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))
);
};
}