Load more fix
This commit is contained in:
parent
ce0c2c0f0a
commit
5e5693332c
|
@ -37,7 +37,7 @@ export const Expo = (props: Props) => {
|
||||||
const { t } = useLocalize()
|
const { t } = useLocalize()
|
||||||
|
|
||||||
const { sortedArticles } = useArticlesStore({
|
const { sortedArticles } = useArticlesStore({
|
||||||
shouts: props.shouts || [],
|
shouts: isLoaded() ? props.shouts : [],
|
||||||
layout: props.layout,
|
layout: props.layout,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -228,7 +228,7 @@ export const Expo = (props: Props) => {
|
||||||
<Show when={randomTopArticles()?.length > 0} keyed={true}>
|
<Show when={randomTopArticles()?.length > 0} keyed={true}>
|
||||||
<ArticleCardSwiper title={t('Favorite')} slides={randomTopArticles()} />
|
<ArticleCardSwiper title={t('Favorite')} slides={randomTopArticles()} />
|
||||||
</Show>
|
</Show>
|
||||||
<For each={sortedArticles().slice(LOAD_MORE_PAGE_SIZE * 2, PRERENDERED_ARTICLES_COUNT)}>
|
<For each={sortedArticles().slice(LOAD_MORE_PAGE_SIZE * 2)}>
|
||||||
{(shout) => (
|
{(shout) => (
|
||||||
<div class="col-md-6 mt-md-5 col-sm-8 mt-sm-3">
|
<div class="col-md-6 mt-md-5 col-sm-8 mt-sm-3">
|
||||||
<ArticleCard
|
<ArticleCard
|
||||||
|
|
Loading…
Reference in New Issue
Block a user