Perf: Dont initial-render full thread on mobile (#2101)
parent
826b841e10
commit
accb25ccf2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue