We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0961efe commit 7d4672eCopy full SHA for 7d4672e
src/app/redux/store/configureStore.dev.js
@@ -32,8 +32,12 @@ const reducer = combineReducers({
32
33
export default function configureStore(initialState) {
34
const store = createStore(reducer, initialState, enhancer);
35
- module.hot.accept('../modules/reducers', () =>
36
- store.replaceReducer(require('../modules/reducers').default)
37
- );
+ // checks if webpack HMR:
+ if (module.hot) {
+ module.hot.accept('../modules/reducers', () =>
38
+ store.replaceReducer(require('../modules/reducers').default)
39
+ );
40
+ }
41
+
42
return store;
43
}
0 commit comments