Perf: Dont initial-render full thread on mobile (#2101)
This commit is contained in:
@@ -322,7 +322,7 @@ function PostThreadLoaded({
|
|||||||
<FlatList
|
<FlatList
|
||||||
ref={ref}
|
ref={ref}
|
||||||
data={posts}
|
data={posts}
|
||||||
initialNumToRender={posts.length}
|
initialNumToRender={!isNative ? posts.length : undefined}
|
||||||
maintainVisibleContentPosition={
|
maintainVisibleContentPosition={
|
||||||
!needsScrollAdjustment.current
|
!needsScrollAdjustment.current
|
||||||
? MAINTAIN_VISIBLE_CONTENT_POSITION
|
? MAINTAIN_VISIBLE_CONTENT_POSITION
|
||||||
|
|||||||
Reference in New Issue
Block a user