Skip to content

Commit

Permalink
fix HMR reducer replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Jun 28, 2018
1 parent a8f77bc commit c6e648a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const configureStore = initialState => {

if (module.hot) {
module.hot.accept("./reducers", () => {
const nextRootReducer = require("./reducers");
const nextRootReducer = require("./reducers").default;
store.replaceReducer(nextRootReducer);
});
}
Expand Down

0 comments on commit c6e648a

Please sign in to comment.