Skip to content

Commit

Permalink
add sort query param to load more
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrickaby committed Feb 13, 2024
1 parent e749314 commit 61f3b13
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/r/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ export default async function Page(props: PageProps) {
<Posts {...posts} />
<Link
className="button"
href={{pathname: `/r/${slug}`, query: {after: posts.data.after}}}
href={{
pathname: `/r/${slug}`,
query: {
after: posts.data.after,
sort
}
}}
prefetch={true}
>
Load More
Expand Down

0 comments on commit 61f3b13

Please sign in to comment.