@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 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 = !1, s = 0, c, l = v.getService().subscribe((t) => {
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", s = Date.now(), clearTimeout(c), c = void 0, e();
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
- o || (o = !0, clearTimeout(c), c = void 0, e());
559
+ s || (s = !0, clearTimeout(l), l = void 0, e());
560
560
  return;
561
561
  }
562
- o = !1;
563
- let l = Date.now();
564
- l - s >= 50 ? (s = l, e()) : c || (c = setTimeout(() => {
565
- c = void 0, s = Date.now(), e();
566
- }, 50 - (l - s)));
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(c), l.unsubscribe();
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) {