@timardex/cluemart-shared 2.2.12 → 2.2.13
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/{chunk-GOWIY4NZ.mjs → chunk-QSBAN3V5.mjs} +9 -1
- package/dist/chunk-QSBAN3V5.mjs.map +1 -0
- package/dist/graphql/index.cjs +8 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-GOWIY4NZ.mjs.map +0 -1
package/dist/hooks/index.mjs
CHANGED
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "../chunk-MRBTCICB.mjs";
|
|
25
25
|
import "../chunk-RAYUJODN.mjs";
|
|
26
26
|
import "../chunk-DQ7ZHIXW.mjs";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-QSBAN3V5.mjs";
|
|
28
28
|
import "../chunk-OSSBKFNH.mjs";
|
|
29
29
|
import "../chunk-7DQBUZXY.mjs";
|
|
30
30
|
import {
|
package/dist/index.cjs
CHANGED
|
@@ -6276,14 +6276,22 @@ var UPDATE_EVENT_INFO_MUTATION = import_client23.gql`
|
|
|
6276
6276
|
// src/graphql/hooks/event/hooksMutation.ts
|
|
6277
6277
|
var useCreateEvent = () => {
|
|
6278
6278
|
const [createEvent, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_MUTATION, {
|
|
6279
|
+
// The mutation response is a live-only view of EventType. Don't write it
|
|
6280
|
+
// into the normalized EventType cache, where it would overwrite the full
|
|
6281
|
+
// (live + archived) `dateTime` that `getEvent` fetches for the detail page.
|
|
6279
6282
|
awaitRefetchQueries: true,
|
|
6283
|
+
fetchPolicy: "no-cache",
|
|
6280
6284
|
refetchQueries: [{ query: GET_USER_EVENTS }]
|
|
6281
6285
|
});
|
|
6282
6286
|
return { createEvent, error, loading };
|
|
6283
6287
|
};
|
|
6284
6288
|
var useUpdateEvent = () => {
|
|
6285
6289
|
const [updateEvent, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_MUTATION, {
|
|
6290
|
+
// See useCreateEvent: the update response only carries the live schedule,
|
|
6291
|
+
// so keep it out of the normalized EventType cache to avoid clobbering the
|
|
6292
|
+
// archived dates merged by `getEvent`.
|
|
6286
6293
|
awaitRefetchQueries: true,
|
|
6294
|
+
fetchPolicy: "no-cache",
|
|
6287
6295
|
refetchQueries: (mutationResult) => {
|
|
6288
6296
|
const eventId = mutationResult?.data?.updateEvent?.data?._id;
|
|
6289
6297
|
if (!eventId) return [];
|