@tscircuit/core 0.0.896 → 0.0.897
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/dist/index.js +6 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -274,7 +274,10 @@ ${error.stack}`
|
|
|
274
274
|
return this.constructor.name;
|
|
275
275
|
}
|
|
276
276
|
_hasIncompleteAsyncEffects() {
|
|
277
|
-
|
|
277
|
+
if (this._asyncEffects.some((effect) => !effect.complete)) return true;
|
|
278
|
+
return this.children.some(
|
|
279
|
+
(child) => typeof child._hasIncompleteAsyncEffects === "function" ? child._hasIncompleteAsyncEffects() : false
|
|
280
|
+
);
|
|
278
281
|
}
|
|
279
282
|
_hasIncompleteAsyncEffectsInSubtreeForPhase(phase) {
|
|
280
283
|
for (const e of this._asyncEffects) {
|
|
@@ -19231,7 +19234,7 @@ import { identity as identity6 } from "transformation-matrix";
|
|
|
19231
19234
|
var package_default = {
|
|
19232
19235
|
name: "@tscircuit/core",
|
|
19233
19236
|
type: "module",
|
|
19234
|
-
version: "0.0.
|
|
19237
|
+
version: "0.0.896",
|
|
19235
19238
|
types: "dist/index.d.ts",
|
|
19236
19239
|
main: "dist/index.js",
|
|
19237
19240
|
module: "dist/index.js",
|
|
@@ -19475,12 +19478,7 @@ var RootCircuit = class {
|
|
|
19475
19478
|
this.emit("renderComplete");
|
|
19476
19479
|
}
|
|
19477
19480
|
_hasIncompleteAsyncEffects() {
|
|
19478
|
-
return this.children.some((child) =>
|
|
19479
|
-
if (child._hasIncompleteAsyncEffects()) return true;
|
|
19480
|
-
return child.children.some(
|
|
19481
|
-
(grandchild) => grandchild._hasIncompleteAsyncEffects()
|
|
19482
|
-
);
|
|
19483
|
-
});
|
|
19481
|
+
return this.children.some((child) => child._hasIncompleteAsyncEffects());
|
|
19484
19482
|
}
|
|
19485
19483
|
getCircuitJson() {
|
|
19486
19484
|
if (!this._hasRenderedAtleastOnce) this.render();
|