text: import { all } from 'redux-saga/effects';
  import { combineSagas } from 'util/Saga';
  import healthSagaBinding from 'sagas/HealthSaga';
  import configSagaBinding from 'sagas/ConfigSaga';
  import i18nSagaBinding from 'sagas/I18nSaga';
  import userSagaBinding from 'sagas/UserSaga';
  import { sagaMiddleware } from './middleware';
  import taskSagaBinding from 'sagas/list/TaskSaga';
  
  export function* rootSaga() {
    yield all(combineSagas([
      healthSagaBinding,
      configSagaBinding,
      i18nSagaBinding,
      userSagaBinding,
      taskSagaBinding,
    ]));
  }
  
  export const injectSaga = (store, { key, saga }) => {
    if (Object.hasOwnProperty.call(store.asyncSagas, key)) return;
  
    const s = store;
    s.asyncSagas[key] = saga;
    sagaMiddleware.run(s.asyncSagas[key]);
  };
  