feat: add cursor pagination to community pages
This commit is contained in:
1 parent
0239d6cef9
commit
ddd560c463
3 files changed
+8
-4
No files matched your search
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user