@timardex/cluemart-shared 2.1.3 → 2.1.7

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.
@@ -42,11 +42,11 @@ import {
42
42
  vendorStallSize,
43
43
  vendorStartDateFields,
44
44
  vendorTable
45
- } from "../chunk-B22YRNRF.mjs";
45
+ } from "../chunk-67HYWKEY.mjs";
46
46
  import {
47
47
  availableCategories,
48
48
  categoryColors
49
- } from "../chunk-HFN6KXX2.mjs";
49
+ } from "../chunk-CUZXB6J2.mjs";
50
50
  import "../chunk-RE4NZPYY.mjs";
51
51
  import "../chunk-T7A7ZG55.mjs";
52
52
  import "../chunk-PIEXGXTD.mjs";
@@ -2396,7 +2396,11 @@ var useGetEvent = (_id) => {
2396
2396
  };
2397
2397
  var useGetOwnedEvent = (_id, options) => {
2398
2398
  const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_OWNED_EVENT, {
2399
- fetchPolicy: "network-only",
2399
+ // `ownedEvent(futureOnly)` is a projection-specific view of EventType.
2400
+ // If this writes into normalized EventType cache, other queries like
2401
+ // `getEvent` (which can include archived dates) can overwrite `dateTime`
2402
+ // for the same entity id and leak into edit screens. Keep it uncached.
2403
+ fetchPolicy: "no-cache",
2400
2404
  skip: !_id,
2401
2405
  variables: { _id, futureOnly: options?.futureOnly ?? false }
2402
2406
  });