From b05a3146b73b96e1703f070f3ced2d9e67ac6b5e Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 15 Feb 2023 12:48:39 -0600 Subject: [PATCH] Fix RN bug that causes home feed not to load more; also fix home feed load view. (#208) RN has a bug where rendering a flatlist with an empty array appears to break its virtual list windowing behaviors. See https://stackoverflow.com/a/67873596 --- src/view/com/posts/Feed.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/view/com/posts/Feed.tsx b/src/view/com/posts/Feed.tsx index 1ed12f07a8..19f38d0625 100644 --- a/src/view/com/posts/Feed.tsx +++ b/src/view/com/posts/Feed.tsx @@ -98,8 +98,12 @@ export const Feed = observer(function Feed({ ) return ( - {feed.isLoading && !data && } - {data && ( + {feed.isLoading && data.length === 0 && ( + + + + )} + {data.length > 0 && (