mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix hasMore
This commit is contained in:
@@ -2195,7 +2195,7 @@ const All = () => {
|
||||
}}
|
||||
endReached={tryLoadMore}
|
||||
useWindowScroll={true}
|
||||
components={{ Footer: hasMore && feed ? () => <PostLoader /> : null }}
|
||||
components={{ Footer: hasMore && feed.length > 0 ? () => <PostLoader /> : null }}
|
||||
/>
|
||||
) : (
|
||||
<PostLoader />
|
||||
|
||||
@@ -2816,7 +2816,7 @@ const Board = () => {
|
||||
}}
|
||||
endReached={tryLoadMore}
|
||||
useWindowScroll={true}
|
||||
components={{ Footer: hasMore && feed ? () => <PostLoader /> : null }}
|
||||
components={{ Footer: hasMore && feed.length > 0 ? () => <PostLoader /> : null }}
|
||||
/>
|
||||
</>
|
||||
) : (<PostLoader />)
|
||||
|
||||
@@ -2206,7 +2206,7 @@ const Subscriptions = () => {
|
||||
}}
|
||||
endReached={tryLoadMore}
|
||||
useWindowScroll={true}
|
||||
components={{ Footer: hasMore && feed ? () => <PostLoader /> : null }}
|
||||
components={{ Footer: hasMore && feed.length > 0 ? () => <PostLoader /> : null }}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user