diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-12-05 18:02:33 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 18:02:33 -0800 |
commit | accb25ccf2f0a00a82ff54f0659abd46e0ac8284 (patch) | |
tree | 9e8f8ad1d4ba5a3cef25b717c72f06540cfa97ad /src/view/com/post-thread/PostThread.tsx | |
parent | 826b841e105269952c00456240dd2978c7bc9d97 (diff) | |
download | voidsky-accb25ccf2f0a00a82ff54f0659abd46e0ac8284.tar.zst |
Perf: Dont initial-render full thread on mobile (#2101)
Diffstat (limited to 'src/view/com/post-thread/PostThread.tsx')
-rw-r--r-- | src/view/com/post-thread/PostThread.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx index edf02e9c5..523a63eb1 100644 --- a/src/view/com/post-thread/PostThread.tsx +++ b/src/view/com/post-thread/PostThread.tsx @@ -322,7 +322,7 @@ function PostThreadLoaded({ <FlatList ref={ref} data={posts} - initialNumToRender={posts.length} + initialNumToRender={!isNative ? posts.length : undefined} maintainVisibleContentPosition={ !needsScrollAdjustment.current ? MAINTAIN_VISIBLE_CONTENT_POSITION |