Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

A few perf params for threads v2 (#8567)

Co-authored-by: Hailey <me@haileyok.com>

authored by

Eric Bailey
Hailey
and committed by
GitHub
bb760400 ab4148dc

+15 -4
+15 -4
src/screens/PostThread/index.tsx
··· 45 45 export function PostThread({uri}: {uri: string}) { 46 46 const {gtMobile} = useBreakpoints() 47 47 const {hasSession} = useSession() 48 - const initialNumToRender = useInitialNumToRender() // TODO 48 + const initialNumToRender = useInitialNumToRender() 49 49 const {height: windowHeight} = useWindowDimensions() 50 50 const anchorPostSource = useUnstablePostSource(uri) 51 51 const feedFeedback = useFeedFeedback(anchorPostSource?.feed, hasSession) ··· 522 522 })} 523 523 onStartReached={onStartReached} 524 524 onEndReached={onEndReached} 525 - onEndReachedThreshold={2} 525 + onEndReachedThreshold={4} 526 526 onStartReachedThreshold={1} 527 527 /** 528 528 * NATIVE ONLY ··· 530 530 */ 531 531 maintainVisibleContentPosition={{minIndexForVisible: 0}} 532 532 desktopFixedHeight 533 + sideBorders={false} 533 534 ListFooterComponent={ 534 535 <ListFooter 535 536 /* ··· 551 552 /> 552 553 } 553 554 initialNumToRender={initialNumToRender} 554 - windowSize={11} 555 - sideBorders={false} 555 + /** 556 + * Default: 21 557 + */ 558 + windowSize={7} 559 + /** 560 + * Default: 10 561 + */ 562 + maxToRenderPerBatch={5} 563 + /** 564 + * Default: 50 565 + */ 566 + updateCellsBatchingPeriod={100} 556 567 /> 557 568 )} 558 569