Skip to content

Commit

Permalink
Fixed catalog HMR
Browse files Browse the repository at this point in the history
  • Loading branch information
thepag committed Apr 18, 2017
1 parent 07cde2d commit 1bd53f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ const render = (Component) => {
render(App);

if (module.hot) {
module.hot.accept('./modules/App', () => { render(App); });
module.hot.accept();
}
4 changes: 4 additions & 0 deletions src/styleguide.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ const render = () => {
};

render();

if (module.hot) {
module.hot.accept();
}

1 comment on commit 1bd53f3

@thepag
Copy link
Owner Author

@thepag thepag commented on 1bd53f3 Apr 18, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.