Open impavidum opened 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.
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.
@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.
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.