Skip to content

Commit

Permalink
Limiting HMR to App (#577)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Hamlin authored and jaredpalmer committed Apr 11, 2018
1 parent 052a23e commit aa253a3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion examples/with-redux/src/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,12 @@ hydrate(
);

if (module.hot) {
module.hot.accept();
module.hot.accept('../common/containers/App', () => {
hydrate(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root')
);
});
}

0 comments on commit aa253a3

Please sign in to comment.