Sfoglia il codice sorgente

Fixed reducer hot reloading

Fela Maslen 7 anni fa
parent
commit
0f43af3ae8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/store.js

+ 1 - 1
src/store.js

@@ -57,7 +57,7 @@ function createCustomStore() {
     if (__DEV__ && module.hot) {
         module.hot.accept('./reducers', () => {
             // eslint-disable-next-line global-require
-            store.replaceReducer(require('./reducers').default);
+            store.replaceReducer(require('./reducers').rootReducer);
         });
 
         module.hot.accept('./sagas', () => {