feat: add cursor pagination to community pages

This commit is contained in:
Xylight committed 2023-09-30 00:22:41 +00:00
1 parent 0239d6cef9
commit ddd560c463
3 files changed
+8 -4

No files matched your search

+2
View File
@@ -89,6 +89,8 @@
<Pageination
page={data.page}
next_cursor={data.posts.next_page}
on:cursor={(c) => searchParam($page.url, 'cursor', c.detail)}
on:change={(p) => searchParam($page.url, 'page', p.detail.toString())}
>
{#if data.posts.posts.length > 0}