Skip to content

Commit

Permalink
Add href link in server side for load more button, to improve seo
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Mar 11, 2024
1 parent 60bbc16 commit 1fb2759
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/lists/InfiniteList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ const InnerInfiniteList = <T extends any>(props: InnerInfiniteListProps<T>) => {
onClick={() => handleInfiniteOnLoad(page)}
block
className='mb-2'
href={isServerSide() ? `?page=${page + 1}` : undefined}
style={{ opacity: isServerSide() ? 0 : 1 }}
>
Load more
Expand Down

0 comments on commit 1fb2759

Please sign in to comment.