Explorar el Código

Fixed reducer hot reloading

Fela Maslen hace 7 años
padre
commit
0f43af3ae8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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', () => {