From 49646c3107991337a4b5f85a6f1d89ce40dad0ad Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Mon, 13 Nov 2023 17:10:40 +1300 Subject: [PATCH] Reduce default limit back to 15 The feeling of scrolling was nice but a page size of 50 makes the main page a bit slower which isn't worth it. --- SetList.tsx | 2 +- constants.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SetList.tsx b/SetList.tsx index b69c750..9e0be42 100644 --- a/SetList.tsx +++ b/SetList.tsx @@ -148,7 +148,7 @@ export default function SetList() { style={{ flex: 1 }} renderItem={renderItem} onEndReached={next} - onEndReachedThreshold={0.99} + onEndReachedThreshold={0.5} refreshing={refreshing} keyExtractor={(set) => set.id?.toString()} onRefresh={() => { diff --git a/constants.ts b/constants.ts index e3ad88a..a1c44b1 100644 --- a/constants.ts +++ b/constants.ts @@ -3,4 +3,4 @@ export const PADDING = 10; export const ITEM_PADDING = 8; export const DARK_RIPPLE = "#444444"; export const LIGHT_RIPPLE = "#c2c2c2"; -export const LIMIT = 50; +export const LIMIT = 15;