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

Live reload does not always work #81

Open
impavidum opened this issue May 4, 2017 · 3 comments
Open

Live reload does not always work #81

impavidum opened this issue May 4, 2017 · 3 comments

Comments

@impavidum
Copy link

Sometimes live reload does not work. Even with a hard refresh nothing has changed. Its like the watch is failing to see the changes and transpile/compile. This happens somewhat frequently.

@impavidum
Copy link
Author

This problem actually only occurs in certain components (generated by the generator). i.e. I can save containers/app.js and it will refresh.

@MarcoScabbiolo
Copy link

Can you provide more details?
The output of the webpack-dev-server command for example, should tell you when something changed and display:

webpack: Compiled successfully.

Also, the browser console will tell you when something changed:

[WDS] App updated. Recompiling...

And if it was able to apply the changes with hot module replacement (HMR) or if it had to do a full reload.

How well HMR works for you will depend on your application, magic doesn't exist, your entire app has to depend solely on the Redux state and React component's properties/state so it can restore itself at any given point. It is actually a nice way to test how well designed your app is.

@suthanbala
Copy link

@impavidum When you see things not refreshing, can you open the terminal window that's watching for the files, and press any key on your keyboard to see if it does anything? Lately I am seeing this pattern on my terminal (on Windows), pressing any key while on the terminal triggers the idle window to start watching again.

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

3 participants