Make page size bigger (15->50) and fetch next page earlier
This project is a little bit slow to get the pages, so it makes sense to fetch things earlier and to get them in bigger chunks.
This commit is contained in:
parent
92dd65ffee
commit
054ae4557d
|
@ -148,6 +148,7 @@ export default function SetList() {
|
|||
style={{ flex: 1 }}
|
||||
renderItem={renderItem}
|
||||
onEndReached={next}
|
||||
onEndReachedThreshold={0.99}
|
||||
refreshing={refreshing}
|
||||
keyExtractor={(set) => set.id?.toString()}
|
||||
onRefresh={() => {
|
||||
|
|
|
@ -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 = 15;
|
||||
export const LIMIT = 50;
|
||||
|
|
Loading…
Reference in New Issue
Block a user