Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 16 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { createStore, applyMiddleware, compose } from 'redux' |
||
2 | import thunkMiddleware from 'redux-thunk' |
||
3 | // import { createLogger } from 'redux-logger' |
||
4 | import rootReducer from './reducer/root.js' |
||
5 | // import createSagaMiddleware from 'redux-saga' |
||
6 | // import rootSaga from './saga.js' |
||
7 | |||
8 | // const sagaMiddleware = createSagaMiddleware() |
||
9 | |||
10 | export const store = createStore( |
||
11 | rootReducer, |
||
12 | compose( |
||
13 | applyMiddleware(thunkMiddleware /* , sagaMiddleware, createLogger() */), |
||
14 | (window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()) || (f => f) |
||
15 | ) |
||
16 | ) |
||
17 | |||
19 |