The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
mutate links when delete domain
Steven Tey13f288ee9816
diff --git a/components/app/modals/add-edit-domain-modal.tsx b/components/app/modals/add-edit-domain-modal.tsxindex cf4a5da6f1..7e0fdb1ee0 100644--- a/components/app/modals/add-edit-domain-modal.tsx+++ b/components/app/modals/add-edit-domain-modal.tsx@@ -116,6 +116,11 @@ function AddEditDomainModal({setDeleting(false);if (res.status === 200) {mutate(`/api/projects/${slug}/domains`);+ mutate(+ (key) => typeof key === "string" && key.startsWith(`/api/links`),+ undefined,+ { revalidate: true },+ );setShowAddEditDomainModal(false);toast.success("Successfully deleted domain!");} else {