Lower max attempts in userAutoPagination

This commit is contained in:
Eric Bailey
2026-08-31 16:57:01 -05:00
parent 0a00392b65
commit ef1191a0ff
+3 -1
View File
@@ -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 {