fix: scrolling not working for infinite list community pages
This commit is contained in:
1 parent
c3e8fbb6a8
commit
2ba807c5b5
3 files changed
+19
-25
No files matched your search
@@ -13,19 +13,15 @@ export async function load({ params, fetch, url }) {
|
||||
(url.searchParams.get('sort') as SortType) ||
|
||||
get(userSettings).defaultSort.sort
|
||||
|
||||
return {
|
||||
sort: sort,
|
||||
page: page || 1,
|
||||
posts: await postFeed({
|
||||
id: 'community',
|
||||
url: url,
|
||||
request: {
|
||||
page: page,
|
||||
page_cursor: cursor,
|
||||
sort: sort,
|
||||
limit: 20,
|
||||
community_name: params.name,
|
||||
}
|
||||
}),
|
||||
}
|
||||
return await postFeed({
|
||||
id: 'community',
|
||||
url: url,
|
||||
request: {
|
||||
page: page,
|
||||
page_cursor: cursor,
|
||||
sort: sort,
|
||||
limit: 20,
|
||||
community_name: params.name,
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user