Skip to content

Commit 02b415b

Browse files
committed
reduce retry count
1 parent 5aa8e8e commit 02b415b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/app/app.dub.co/(dashboard)/[slug]/links/[...link]/page-client.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function LinkPageClient() {
5353
// doing onErrorRetry to avoid race condiition for when a link's domain / key is updated
5454
onErrorRetry: (error, _key, _config, revalidate, { retryCount }) => {
5555
if (error.status === 401 || error.status === 404) {
56-
if (retryCount >= 3) {
56+
if (retryCount > 1) {
5757
router.push(`/${workspace.slug}/links`);
5858
return;
5959
}

0 commit comments

Comments
 (0)