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.

reduce retry count

Steven Tey02b415b712e1
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/links/[...link]/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/links/[...link]/page-client.tsx
index 7a905497e1..fa0758e5d3 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/links/[...link]/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/links/[...link]/page-client.tsx
@@ -53,7 +53,7 @@ export function LinkPageClient() {
// doing onErrorRetry to avoid race condiition for when a link's domain / key is updated
onErrorRetry: (error, _key, _config, revalidate, { retryCount }) => {
if (error.status === 401 || error.status === 404) {
- if (retryCount >= 3) {
+ if (retryCount > 1) {
router.push(`/${workspace.slug}/links`);
return;
}