stylesuxx / generator-react-webpack-redux

React Webpack Generator including Redux support
Other
552 stars 84 forks source link

Live reload does not always work #81

Open impavidum opened 7 years ago

impavidum commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

@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.