| Total Complexity | 2 |
| Complexity/F | 2 |
| Lines of Code | 20 |
| Function Count | 1 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 5 | ||
| 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 | import Login from './Login'; |
||
| 5 | |||
| 6 | const rootReducer = combineReducers({ |
||
| 7 | Login, |
||
| 8 | }); |
||
| 9 | |||
| 10 | const devTools = window.devToolsExtension ? window.devToolsExtension() : f => f; |
||
| 11 | |||
| 12 | const store = createStore( |
||
| 13 | rootReducer, |
||
| 14 | {}, |
||
| 15 | compose( |
||
| 16 | applyMiddleware(promiseMiddleware), |
||
| 17 | devTools, |
||
| 18 | ), |
||
| 19 | ); |
||
| 20 | |||
| 21 | storeSynchronize(store); |
||
| 24 |