From b1e3400d4424e5a0314077df6bdc32ef87ec099a Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Tue, 11 Jun 2024 10:25:48 +0200 Subject: [PATCH] perf(feed): optimize postsPerPage --- src/views/board/board.tsx | 2 +- src/views/catalog/catalog.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/board/board.tsx b/src/views/board/board.tsx index 1b3970f8..d8b89408 100644 --- a/src/views/board/board.tsx +++ b/src/views/board/board.tsx @@ -48,7 +48,7 @@ const Board = () => { const feedOptions: any = { subplebbitAddresses, sortType, - postsPerPage: 10, + postsPerPage: isInAllView || isInSubscriptionsView ? 5 : 25, }; if (isInAllView || isInSubscriptionsView) { diff --git a/src/views/catalog/catalog.tsx b/src/views/catalog/catalog.tsx index 69125d35..8deabd97 100644 --- a/src/views/catalog/catalog.tsx +++ b/src/views/catalog/catalog.tsx @@ -110,7 +110,7 @@ const Catalog = () => { const feedOptions: any = { subplebbitAddresses, sortType, - postsPerPage, + postsPerPage: isInAllView || isInSubscriptionsView ? 10 : 25, }; if (isInAllView || isInSubscriptionsView) {