{"size": 456, "ext": "js", "max_stars_repo_path": "src/store/configure-store.js", "max_stars_repo_name": "knpwrs/react-fp-starter", "max_stars_repo_stars_event_min_datetime": "2017-05-26T17:52:52.000Z", "max_stars_repo_stars_event_max_datetime": "2017-10-21T13:42:01.000Z", "max_issues_repo_path": "src/store/configure-store.js", "max_issues_repo_name": "knpwrs/react-fp-starter", "max_issues_repo_issues_event_min_datetime": "2017-08-29T14:01:45.000Z", "max_issues_repo_issues_event_max_datetime": "2017-10-21T13:42:42.000Z", "max_forks_repo_path": "src/store/configure-store.js", "max_forks_repo_name": "knpwrs/react-fp-starter", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 30.4, "max_line_length": 63, "alphanum_fraction": 0.75}
import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
import createSagaMiddleware from 'redux-saga';

export default (rootReducer, rootSaga, initialState = {}) => {
  const sagaMiddleware = createSagaMiddleware();
  const store = createStore(
    rootReducer,
    initialState,
    composeWithDevTools(applyMiddleware(sagaMiddleware)),
  );
  sagaMiddleware.run(rootSaga);
  return store;
};
