@drawbridge/components 0.1.30 → 0.1.31
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.
|
@@ -409,7 +409,11 @@ const useEmailPreview = ({ campaign, event, message, organization, subject, text
|
|
|
409
409
|
});
|
|
410
410
|
return result;
|
|
411
411
|
},
|
|
412
|
-
|
|
412
|
+
// Stale at once ( the dashboard's default is never ): the key holds the
|
|
413
|
+
// step's copy only, and the placeholder under it is the campaign's, so
|
|
414
|
+
// each visit to the trigger page asks again (Asana 1217773117236699).
|
|
415
|
+
queryKey: ["workflow-email-preview", organization, campaign, event, settled],
|
|
416
|
+
staleTime: 0
|
|
413
417
|
});
|
|
414
418
|
if (preview.data) last.current = preview.data;
|
|
415
419
|
return last.current;
|
|
@@ -356,7 +356,11 @@ const useEmailPreview = ({ campaign, event, message, organization, subject, text
|
|
|
356
356
|
});
|
|
357
357
|
return result;
|
|
358
358
|
},
|
|
359
|
-
|
|
359
|
+
// Stale at once ( the dashboard's default is never ): the key holds the
|
|
360
|
+
// step's copy only, and the placeholder under it is the campaign's, so
|
|
361
|
+
// each visit to the trigger page asks again (Asana 1217773117236699).
|
|
362
|
+
queryKey: ["workflow-email-preview", organization, campaign, event, settled],
|
|
363
|
+
staleTime: 0
|
|
360
364
|
});
|
|
361
365
|
if (preview.data) last.current = preview.data;
|
|
362
366
|
return last.current;
|
|
@@ -322,6 +322,9 @@ const TemplateSocketOrganization = ({
|
|
|
322
322
|
queryClient.invalidateQueries({
|
|
323
323
|
queryKey: ["organization-workflow", params.organization]
|
|
324
324
|
});
|
|
325
|
+
queryClient.invalidateQueries({
|
|
326
|
+
queryKey: ["workflow-email-preview", params.organization]
|
|
327
|
+
});
|
|
325
328
|
queryClient.invalidateQueries({
|
|
326
329
|
queryKey: ["menu", "campaign", params.organization]
|
|
327
330
|
});
|
|
@@ -598,6 +601,7 @@ const TemplateSocketOrganization = ({
|
|
|
598
601
|
["organization-campaign-products", params == null ? void 0 : params.organization],
|
|
599
602
|
["organization-workflows", params == null ? void 0 : params.organization],
|
|
600
603
|
["organization-workflow", params == null ? void 0 : params.organization],
|
|
604
|
+
["workflow-email-preview", params == null ? void 0 : params.organization],
|
|
601
605
|
["organization-workflow-steps"],
|
|
602
606
|
["organization-contacts", params == null ? void 0 : params.organization],
|
|
603
607
|
["organization-exports", params == null ? void 0 : params.organization],
|
|
@@ -287,6 +287,9 @@ const TemplateSocketOrganization = ({
|
|
|
287
287
|
queryClient.invalidateQueries({
|
|
288
288
|
queryKey: ["organization-workflow", params.organization]
|
|
289
289
|
});
|
|
290
|
+
queryClient.invalidateQueries({
|
|
291
|
+
queryKey: ["workflow-email-preview", params.organization]
|
|
292
|
+
});
|
|
290
293
|
queryClient.invalidateQueries({
|
|
291
294
|
queryKey: ["menu", "campaign", params.organization]
|
|
292
295
|
});
|
|
@@ -563,6 +566,7 @@ const TemplateSocketOrganization = ({
|
|
|
563
566
|
["organization-campaign-products", params == null ? void 0 : params.organization],
|
|
564
567
|
["organization-workflows", params == null ? void 0 : params.organization],
|
|
565
568
|
["organization-workflow", params == null ? void 0 : params.organization],
|
|
569
|
+
["workflow-email-preview", params == null ? void 0 : params.organization],
|
|
566
570
|
["organization-workflow-steps"],
|
|
567
571
|
["organization-contacts", params == null ? void 0 : params.organization],
|
|
568
572
|
["organization-exports", params == null ? void 0 : params.organization],
|