mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
perf(feed): optimize postsPerPage
This commit is contained in:
@@ -48,7 +48,7 @@ const Board = () => {
|
|||||||
const feedOptions: any = {
|
const feedOptions: any = {
|
||||||
subplebbitAddresses,
|
subplebbitAddresses,
|
||||||
sortType,
|
sortType,
|
||||||
postsPerPage: 10,
|
postsPerPage: isInAllView || isInSubscriptionsView ? 5 : 25,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (isInAllView || isInSubscriptionsView) {
|
if (isInAllView || isInSubscriptionsView) {
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ const Catalog = () => {
|
|||||||
const feedOptions: any = {
|
const feedOptions: any = {
|
||||||
subplebbitAddresses,
|
subplebbitAddresses,
|
||||||
sortType,
|
sortType,
|
||||||
postsPerPage,
|
postsPerPage: isInAllView || isInSubscriptionsView ? 10 : 25,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (isInAllView || isInSubscriptionsView) {
|
if (isInAllView || isInSubscriptionsView) {
|
||||||
|
|||||||
Reference in New Issue
Block a user