Skip to content

Commit 7d4672e

Browse files
authored
fix dev bundle
1 parent 0961efe commit 7d4672e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/app/redux/store/configureStore.dev.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@ const reducer = combineReducers({
3232

3333
export default function configureStore(initialState) {
3434
const store = createStore(reducer, initialState, enhancer);
35-
module.hot.accept('../modules/reducers', () =>
36-
store.replaceReducer(require('../modules/reducers').default)
37-
);
35+
// checks if webpack HMR:
36+
if (module.hot) {
37+
module.hot.accept('../modules/reducers', () =>
38+
store.replaceReducer(require('../modules/reducers').default)
39+
);
40+
}
41+
3842
return store;
3943
}

0 commit comments

Comments
 (0)