Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use react-hot-loader ? #5

Open
vimplus opened this issue Apr 15, 2017 · 1 comment
Open

Can't use react-hot-loader ? #5

vimplus opened this issue Apr 15, 2017 · 1 comment

Comments

@vimplus
Copy link

vimplus commented Apr 15, 2017

Browser console print:

[HMR] Updated modules:
index.ca91de43.js:47980 [HMR]  - ./src/routes/User/list.js
index.ca91de43.js:47980 [HMR]  - ./src/routes async recursive ^.*\.js$
index.ca91de43.js:47980 [HMR]  - ./src/routes/index.js
index.ca91de43.js:48035 [HMR] App is up to date.

Page hasn't been updated.
Excuse me, what can I do?

@arvigeus
Copy link

Try this:

if (module.hot) {
  require('./MyAsyncComponent');
 // Manually add any component that is loaded async
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants