We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 382635d commit 69cc31cCopy full SHA for 69cc31c
1 file changed
hot/dev-server.js
@@ -35,10 +35,12 @@ if(module.hot) {
35
});
36
}
37
window.onmessage = function(event) {
38
- if(module.hot.status() === "idle" && typeof event.data === "string" && event.data.indexOf("webpackHotUpdate") === 0) {
+ if(typeof event.data === "string" && event.data.indexOf("webpackHotUpdate") === 0) {
39
lastData = event.data;
40
- console.log("[HMR] Checking for updates on the server...");
41
- check();
+ if(module.hot.status() === "idle") {
+ console.log("[HMR] Checking for updates on the server...");
42
+ check();
43
+ }
44
45
};
46
0 commit comments