cx 24.8.5 → 24.8.6
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/manifest.js +734 -734
- package/dist/ui.js +11 -3
- package/package.json +1 -1
- package/src/ui/Cx.js +325 -317
package/dist/ui.js
CHANGED
|
@@ -2403,7 +2403,8 @@ var CxContext = /*#__PURE__*/ (function (_VDOM$Component2) {
|
|
|
2403
2403
|
contentFactory = props.contentFactory;
|
|
2404
2404
|
var count = 0,
|
|
2405
2405
|
visible,
|
|
2406
|
-
context
|
|
2406
|
+
context,
|
|
2407
|
+
forceContinue;
|
|
2407
2408
|
|
|
2408
2409
|
//should not be tracked by parents for destroy
|
|
2409
2410
|
if (!instance.detached)
|
|
@@ -2413,6 +2414,8 @@ var CxContext = /*#__PURE__*/ (function (_VDOM$Component2) {
|
|
|
2413
2414
|
if (this.props.cultureInfo) pushCulture(this.props.cultureInfo);
|
|
2414
2415
|
try {
|
|
2415
2416
|
do {
|
|
2417
|
+
count++;
|
|
2418
|
+
forceContinue = false;
|
|
2416
2419
|
context = new RenderingContext(options);
|
|
2417
2420
|
context.forceUpdate = this.props.forceUpdate;
|
|
2418
2421
|
this.props.flags.dirty = false;
|
|
@@ -2427,14 +2430,19 @@ var CxContext = /*#__PURE__*/ (function (_VDOM$Component2) {
|
|
|
2427
2430
|
} else if (instance.destroyTracked) {
|
|
2428
2431
|
instance.destroy();
|
|
2429
2432
|
}
|
|
2430
|
-
if (this.props.flags.dirty &&
|
|
2433
|
+
if (this.props.flags.dirty && count <= 3 && Widget.optimizePrepare && now() - this.timings.start < 8) {
|
|
2434
|
+
forceContinue = true;
|
|
2431
2435
|
continue;
|
|
2436
|
+
}
|
|
2432
2437
|
if (visible) {
|
|
2433
2438
|
this.timings.afterExplore = now();
|
|
2434
2439
|
for (var i = 0; i < context.prepareList.length; i++) context.prepareList[i].prepare(context);
|
|
2435
2440
|
this.timings.afterPrepare = now();
|
|
2436
2441
|
}
|
|
2437
|
-
} while (
|
|
2442
|
+
} while (
|
|
2443
|
+
forceContinue ||
|
|
2444
|
+
(this.props.flags.dirty && count <= 3 && Widget.optimizePrepare && now() - this.timings.start < 8)
|
|
2445
|
+
);
|
|
2438
2446
|
if (visible) {
|
|
2439
2447
|
//walk in reverse order so children get rendered first
|
|
2440
2448
|
var renderList = context.getRootRenderList();
|
package/package.json
CHANGED