| Total Complexity | 2 |
| Complexity/F | 2 |
| Lines of Code | 23 |
| Function Count | 1 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 1 |
| 1 | import { createStore, combineReducers, compose, applyMiddleware } from 'redux' |
||
| 2 | import promiseMiddleware from 'redux-promise' |
||
| 3 | import storeSynchronize from 'redux-localstore' |
||
| 4 | |||
| 5 | import Github from './Github' |
||
| 6 | import Login from './Login' |
||
| 7 | |||
| 8 | const rootReducer = combineReducers({ |
||
| 9 | Github, |
||
| 10 | Login |
||
| 11 | }) |
||
| 12 | |||
| 13 | const devTools = window.devToolsExtension ? window.devToolsExtension() : f => f |
||
| 14 | |||
| 15 | const store = createStore( |
||
| 16 | rootReducer, |
||
| 17 | {}, |
||
| 18 | compose(applyMiddleware(promiseMiddleware), devTools) |
||
| 19 | ) |
||
| 20 | |||
| 21 | storeSynchronize(store) |
||
| 22 | |||
| 23 | export default store |
||
| 24 |