about summary refs log tree commit diff
path: root/src/view/com/post-thread/PostThread.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-12-05 18:02:33 -0800
committerGitHub <noreply@github.com>2023-12-05 18:02:33 -0800
commitaccb25ccf2f0a00a82ff54f0659abd46e0ac8284 (patch)
tree9e8f8ad1d4ba5a3cef25b717c72f06540cfa97ad /src/view/com/post-thread/PostThread.tsx
parent826b841e105269952c00456240dd2978c7bc9d97 (diff)
downloadvoidsky-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.tsx2
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