Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

increase dedupingInterval

Steven Teyfc8b31e0ef66
diff --git a/apps/web/lib/swr/use-links-count.ts b/apps/web/lib/swr/use-links-count.ts
index 0999e76346..e2f4350609 100644
--- a/apps/web/lib/swr/use-links-count.ts
+++ b/apps/web/lib/swr/use-links-count.ts
@@ -43,7 +43,7 @@ export default function useLinksCount(
: null,
fetcher,
{
- dedupingInterval: 30000,
+ dedupingInterval: 60000,
keepPreviousData: true,
},
);
diff --git a/apps/web/lib/swr/use-tags.ts b/apps/web/lib/swr/use-tags.ts
index 9e354ab60a..d2c0decf29 100644
--- a/apps/web/lib/swr/use-tags.ts
+++ b/apps/web/lib/swr/use-tags.ts
@@ -10,7 +10,7 @@ export default function useTags() {
id && `/api/tags?workspaceId=${id}`,
fetcher,
{
- dedupingInterval: 30000,
+ dedupingInterval: 60000,
},
);
diff --git a/apps/web/lib/swr/use-workspace.ts b/apps/web/lib/swr/use-workspace.ts
index 77eb1b84f5..788e8fc74e 100644
--- a/apps/web/lib/swr/use-workspace.ts
+++ b/apps/web/lib/swr/use-workspace.ts
@@ -15,7 +15,7 @@ export default function useWorkspace() {
error,
mutate,
} = useSWR<WorkspaceProps>(slug && `/api/workspaces/${slug}`, fetcher, {
- dedupingInterval: 30000,
+ dedupingInterval: 60000,
});
return {
diff --git a/apps/web/lib/swr/use-workspaces.ts b/apps/web/lib/swr/use-workspaces.ts
index 42fad33c47..e27ed179d2 100644
--- a/apps/web/lib/swr/use-workspaces.ts
+++ b/apps/web/lib/swr/use-workspaces.ts
@@ -7,7 +7,7 @@ export default function useWorkspaces() {
"/api/workspaces",
fetcher,
{
- dedupingInterval: 30000,
+ dedupingInterval: 60000,
},
);