From ef1191a0ff25e5a08c8d802bc635d701725e7521 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Mon, 31 Aug 2026 16:57:01 -0500 Subject: [PATCH] Lower max attempts in userAutoPagination --- src/state/queries/util.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/state/queries/util.ts b/src/state/queries/util.ts index 718b6cf7b8..f35b2dcbc9 100644 --- a/src/state/queries/util.ts +++ b/src/state/queries/util.ts @@ -9,6 +9,8 @@ import { import {app} from '#/lexicons' import * as bsky from '#/types/bsky' +const MAX_ATTEMPTS = 5 + type AutoPaginationQuery = { data?: {pageParams: unknown[]} isLoading: boolean @@ -75,7 +77,7 @@ export function useAutoPagination( .some(param => Object.is(cursorOf(param), currentCursor)) if (repeatedCursor) return attemptCount.current++ - if (attemptCount.current < 50) { + if (attemptCount.current < MAX_ATTEMPTS) { void query.fetchNextPage() } } else {