@seedprotocol/react 0.7.13-next.1534.gb51a5b1 → 0.7.13-next.1544.g0602f59
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 +12 -11
- package/dist/index.js.map +1 -1
- package/dist/itemProperty.d.ts +2 -0
- package/dist/itemProperty.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -549,29 +549,30 @@ function gt(e, t) {
|
|
|
549
549
|
}, r), v = _.data ?? void 0;
|
|
550
550
|
return yt(o(() => v ? [v] : [], [v])), i(() => {
|
|
551
551
|
if (!v) return;
|
|
552
|
-
let e = () => a((e) => e + 1), t = v.getService().getSnapshot()?.context, n = t?.renderValue, r = t?.propertyValue, i = t?.conflict, o =
|
|
552
|
+
let e = () => a((e) => e + 1), t = v.getService().getSnapshot()?.context, n = t?.renderValue, r = t?.propertyValue, i = t?.conflict, o = t?.missingFile, s = !1, c = 0, l, u = v.getService().subscribe((t) => {
|
|
553
553
|
let a = t?.context ?? {};
|
|
554
|
-
if (!Object.is(a.renderValue, n) || !Object.is(a.propertyValue, r) || !Object.is(a.conflict ?? null, i ?? null)) {
|
|
555
|
-
n = a.renderValue, r = a.propertyValue, i = a.conflict, o = t.value === "idle" && a._status === "ready",
|
|
554
|
+
if (!Object.is(a.renderValue, n) || !Object.is(a.propertyValue, r) || !Object.is(a.conflict ?? null, i ?? null) || !Object.is(a.missingFile ?? null, o ?? null)) {
|
|
555
|
+
n = a.renderValue, r = a.propertyValue, i = a.conflict, o = a.missingFile, s = t.value === "idle" && a._status === "ready", c = Date.now(), clearTimeout(l), l = void 0, e();
|
|
556
556
|
return;
|
|
557
557
|
}
|
|
558
558
|
if (t.value === "idle" && a._status === "ready") {
|
|
559
|
-
|
|
559
|
+
s || (s = !0, clearTimeout(l), l = void 0, e());
|
|
560
560
|
return;
|
|
561
561
|
}
|
|
562
|
-
|
|
563
|
-
let
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
}, 50 - (
|
|
562
|
+
s = !1;
|
|
563
|
+
let u = Date.now();
|
|
564
|
+
u - c >= 50 ? (c = u, e()) : l || (l = setTimeout(() => {
|
|
565
|
+
l = void 0, c = Date.now(), e();
|
|
566
|
+
}, 50 - (u - c)));
|
|
567
567
|
});
|
|
568
568
|
return () => {
|
|
569
|
-
clearTimeout(
|
|
569
|
+
clearTimeout(l), u.unsubscribe();
|
|
570
570
|
};
|
|
571
571
|
}, [v]), {
|
|
572
572
|
property: v,
|
|
573
573
|
isLoading: !!h && _.isPending,
|
|
574
|
-
error: _.error
|
|
574
|
+
error: _.error,
|
|
575
|
+
valueStatus: v?.valueStatus
|
|
575
576
|
};
|
|
576
577
|
}
|
|
577
578
|
function _t(e, t = 300) {
|