Skip to content

Commit

Permalink
Merge pull request #13877 from axules/bugfix/hot-poll-infinity
Browse files Browse the repository at this point in the history
fix hot/poll, hot/condition, hot/only-dev-server infinity recursion
  • Loading branch information
sokra committed Aug 2, 2021
2 parents 3f353b6 + 551f64a commit 1c1af83
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hot/only-dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if (module.hot) {
module.hot
.check()
.then(function (updatedModules) {
if (!updatedModules) {
if (!updatedModules || updatedModules.length === 0) {
log("warning", "[HMR] Cannot find update. Need to do a full reload!");
log(
"warning",
Expand Down
2 changes: 1 addition & 1 deletion hot/poll.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (module.hot) {
module.hot
.check(true)
.then(function (updatedModules) {
if (!updatedModules) {
if (!updatedModules || updatedModules.length === 0) {
if (fromUpdate) log("info", "[HMR] Update applied.");
return;
}
Expand Down
2 changes: 1 addition & 1 deletion hot/signal.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if (module.hot) {
module.hot
.check()
.then(function (updatedModules) {
if (!updatedModules) {
if (!updatedModules || updatedModules.length === 0) {
if (fromUpdate) log("info", "[HMR] Update applied.");
else log("warning", "[HMR] Cannot find update.");
return;
Expand Down

0 comments on commit 1c1af83

Please sign in to comment.