@dra2020/baseclient 1.0.103 → 1.0.104

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.
@@ -1071,6 +1071,7 @@ exports.DataFlowStamp = exports.DataFlowCallback = exports.DataFlow = void 0;
1071
1071
  class DataFlow {
1072
1072
  constructor() {
1073
1073
  this.usesList = [];
1074
+ this.inCompute = false;
1074
1075
  }
1075
1076
  // override in subclass
1076
1077
  dfid() { return null; }
@@ -1097,9 +1098,14 @@ class DataFlow {
1097
1098
  this.usesList.forEach(ui => { ui.id = ui.df.dfid(); });
1098
1099
  }
1099
1100
  ifcompute() {
1101
+ var _a;
1100
1102
  if (this.stale()) {
1103
+ if (this.inCompute)
1104
+ console.log(`DataFlow compute reentrancy: ${(_a = this.constructor) === null || _a === void 0 ? void 0 : _a.name}`);
1105
+ this.inCompute = true;
1101
1106
  this.remember();
1102
1107
  this.compute();
1108
+ this.inCompute = false;
1103
1109
  }
1104
1110
  }
1105
1111
  }