kui-utils 0.0.30 → 0.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/index.js CHANGED
@@ -2222,7 +2222,9 @@ var Loader = /** @class */ (function () {
2222
2222
  return new Promise(function (resolve) {
2223
2223
  // eslint-disable-next-line no-promise-executor-return
2224
2224
  return setTimeout(function () {
2225
- _this.isLoading = false;
2225
+ mobx.runInAction(function () {
2226
+ _this.isLoading = false;
2227
+ });
2226
2228
  resolve(true);
2227
2229
  }, _this.delayTime - (_this.timeAfterLoading - _this.timeBeforeLoading));
2228
2230
  });
@@ -2249,6 +2251,7 @@ var Loader = /** @class */ (function () {
2249
2251
  this.timeBeforeLoading = 0;
2250
2252
  this.timeAfterLoading = 0;
2251
2253
  this.delayTime = delayTime || defaultDelayTime;
2254
+ this.errorMessage = "";
2252
2255
  mobx.makeAutoObservable(this);
2253
2256
  }
2254
2257
  return Loader;