Skip to content

Commit

Permalink
fix hot/signal infinity recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
axules committed Aug 1, 2021
1 parent 237f55a commit b573514
Showing 1 changed file with 1 addition and 1 deletion.
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 b573514

Please sign in to comment.