ddd-react 1.10.8 → 1.10.9
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.mjs +15 -15
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as c, e as m, a as R, A as E, b as x, h as
|
|
1
|
+
import { D as c, e as m, a as R, A as E, b as x, h as B, c as U } from "./h-BbaMkkC7.mjs";
|
|
2
2
|
import { d as Pt, f as Ot } from "./h-BbaMkkC7.mjs";
|
|
3
3
|
function b(e, t) {
|
|
4
4
|
if (e === null || t === null || e === void 0 || t === void 0)
|
|
@@ -550,20 +550,20 @@ class T {
|
|
|
550
550
|
console.log("Rendering fallback UI");
|
|
551
551
|
try {
|
|
552
552
|
const s = n.render();
|
|
553
|
-
if (s
|
|
554
|
-
if (
|
|
553
|
+
if (s) {
|
|
554
|
+
if (!n.vdom) {
|
|
555
555
|
for (console.log("Mounting ErrorBoundary fallback (first time)"); n.hostEl.firstChild; )
|
|
556
556
|
n.hostEl.removeChild(n.hostEl.firstChild);
|
|
557
|
-
d(s, n.hostEl, null, n.parent), n.vdom = s
|
|
557
|
+
d(s, n.hostEl, null, n.parent), n.vdom = s, n.isMounted = !0, h(() => {
|
|
558
|
+
n.didCatch(t, {
|
|
559
|
+
phase: r,
|
|
560
|
+
failedComponent: this.constructor.name,
|
|
561
|
+
componentStack: this.getComponentStack()
|
|
562
|
+
}), n.didMount();
|
|
563
|
+
});
|
|
558
564
|
}
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
phase: r,
|
|
562
|
-
failedComponent: this.constructor.name,
|
|
563
|
-
componentStack: this.getComponentStack()
|
|
564
|
-
}), n.didMount();
|
|
565
|
-
});
|
|
566
|
-
}
|
|
565
|
+
} else
|
|
566
|
+
console.error("ErrorBoundary.render() returned null or undefined!");
|
|
567
567
|
} catch (s) {
|
|
568
568
|
console.error("Error during ErrorBoundary recovery:", s), n.parent && n.parent.handleError(s, r);
|
|
569
569
|
}
|
|
@@ -614,7 +614,7 @@ function yt(e) {
|
|
|
614
614
|
isProvider = !0;
|
|
615
615
|
render() {
|
|
616
616
|
let o = [];
|
|
617
|
-
return Array.isArray(this.props.children) ? o = this.props.children : this.props.children ? o = [this.props.children] : o = [],
|
|
617
|
+
return Array.isArray(this.props.children) ? o = this.props.children : this.props.children ? o = [this.props.children] : o = [], B(o);
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
620
|
class r extends T {
|
|
@@ -655,7 +655,7 @@ function gt(e = null) {
|
|
|
655
655
|
}
|
|
656
656
|
function vt(e, t) {
|
|
657
657
|
const r = Array.isArray(e) ? e : [e];
|
|
658
|
-
return
|
|
658
|
+
return U(r, t);
|
|
659
659
|
}
|
|
660
660
|
export {
|
|
661
661
|
T as Component,
|
|
@@ -663,7 +663,7 @@ export {
|
|
|
663
663
|
vt as createPortal,
|
|
664
664
|
gt as createRef,
|
|
665
665
|
Pt as h,
|
|
666
|
-
|
|
666
|
+
B as hFragment,
|
|
667
667
|
Ot as hString,
|
|
668
668
|
Et as render
|
|
669
669
|
};
|