question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hot module reloading doesn't work

See original GitHub issue

I have cloned latest master which is 048e67f, did npm install && npm start, and hot reloading doesn’t work.

The browser window was opened with localhost:3001, and changes saved in my editor does trigger recompiling and the changes can be seen when refreshing, but there’s no hot module replacement (or even auto refreshing) happening.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
maksimkurbcommented, Feb 5, 2018

@socrat3z @frenzzy For me HMR started working on react-intl branch, when I changed this part of client.js to

// Enable Hot Module Replacement (HMR)
if (module.hot) {
  module.hot.accept('./router', () => {
    if (appInstance && appInstance.updater.isMounted(appInstance)) {
      // Force-update the whole tree, including components that refuse to update
      deepForceUpdate(appInstance);
    }
+    onLocationChange(currentLocation); // <<<< added onLocationChange() here, it was removed previously
  });
}
1reaction
frenzzycommented, Oct 24, 2016

Do you see pending request on devtools network tab after hot changes?

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

webpack-dev-server hot reload not working - Stack Overflow
It seems webpack-dev-server gets confused when it sees dist/bundle.js in the html file and doesn't hot replace it, even though webpack.config.js ...
Read more >
Doesn't work hot reload with browserslist config #2812 - GitHub
open browser and try to edit code. ...hot reload should be performed... What is the expected behavior? After editing code it should perform...
Read more >
Hot Module Replacement - webpack
It allows all kinds of modules to be updated at runtime without the need for a full refresh. This page focuses on implementation...
Read more >
Hot reload - Flutter documentation
Hot reload doesn't work when enumerated types are changed to regular classes or regular classes are changed to enumerated types. For example:.
Read more >
Hot reload not working - Visual Studio Feedback
I'm trying to use Hot Reload on Android Emulador, but when I do any change in XAML file, the app doesn't update. Looking...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found