(initialState)
| 25 | } |
| 26 | |
| 27 | export default function configureStore(initialState) { |
| 28 | const store = createStoreWithMiddleware(rootReducer, initialState); |
| 29 | |
| 30 | if (module.hot) { |
| 31 | // Enable Webpack hot module replacement for reducers |
| 32 | module.hot.accept('reducers', () => { |
| 33 | const nextReducer = require('reducers'); |
| 34 | store.replaceReducer(nextReducer); |
| 35 | }); |
| 36 | } |
| 37 | |
| 38 | return store; |
| 39 | } |
no outgoing calls
no test coverage detected