fix hot/signal infinity recursion

This commit is contained in:
Denis Shelest 2021-08-01 14:11:48 +03:00 committed by GitHub
parent 237f55a5a5
commit b573514987
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ if (module.hot) {
module.hot module.hot
.check() .check()
.then(function (updatedModules) { .then(function (updatedModules) {
if (!updatedModules) { if (!updatedModules || updatedModules.length === 0) {
if (fromUpdate) log("info", "[HMR] Update applied."); if (fromUpdate) log("info", "[HMR] Update applied.");
else log("warning", "[HMR] Cannot find update."); else log("warning", "[HMR] Cannot find update.");
return; return;