mirror of
https://github.com/vercel/next-learn.git
synced 2026-06-11 09:51:47 +00:00
fix: Add index to Pagination key for uniqueness in starter-example (#1039)
This commit is contained in:
@@ -32,7 +32,7 @@ export default function Pagination({ totalPages }: { totalPages: number }) {
|
||||
|
||||
return (
|
||||
<PaginationNumber
|
||||
key={page}
|
||||
key={`${page}-${index}`}
|
||||
href={createPageURL(page)}
|
||||
page={page}
|
||||
position={position}
|
||||
|
||||
Reference in New Issue
Block a user