@timardex/cluemart-shared 2.1.3 → 2.1.4

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 CHANGED
@@ -5736,7 +5736,11 @@ var useGetEvent = (_id) => {
5736
5736
  };
5737
5737
  var useGetOwnedEvent = (_id, options) => {
5738
5738
  const { loading, error, data, refetch } = useQuery2(GET_OWNED_EVENT, {
5739
- fetchPolicy: "network-only",
5739
+ // `ownedEvent(futureOnly)` is a projection-specific view of EventType.
5740
+ // If this writes into normalized EventType cache, other queries like
5741
+ // `getEvent` (which can include archived dates) can overwrite `dateTime`
5742
+ // for the same entity id and leak into edit screens. Keep it uncached.
5743
+ fetchPolicy: "no-cache",
5740
5744
  skip: !_id,
5741
5745
  variables: { _id, futureOnly: options?.futureOnly ?? false }
5742
5746
  });