MCPcopy
hub / github.com/Nealyang/React-Express-Blog-Demo / configureStore

Function configureStore

app/configureStore.js:22–33  ·  view source on GitHub ↗
(initialState={})

Source from the content-addressed store, hash-verified

20}
21
22export default function configureStore(initialState={}) {
23 const store = createStore(rootReducer, initialState,storeEnhancers);
24 sagaMiddleware.run(rootSaga);
25 if (module.hot && process.env.NODE_ENV!=='production') {
26 // Enable Webpack hot module replacement for reducers
27 module.hot.accept( './reducers',() => {
28 const nextRootReducer = require('./reducers/index');
29 store.replaceReducer(nextRootReducer);
30 });
31 }
32 return store;
33}

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected