Skip to content

Commit

Permalink
feat: prefetch
Browse files Browse the repository at this point in the history
  • Loading branch information
xihale committed Apr 4, 2024
1 parent 2995a41 commit e56d929
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion src/ui/PoemList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function PoemList(){
return <>
<div className={styles.container}>
{poems.map((d)=>
<Link href={`/poem/${d.id}`} key={d.id} className={styles.card}>
<Link prefetch href={`/poem/${d.id}`} key={d.id} className={styles.card}>
<div className={styles.meta}>
<div className={styles.title}>{d.title}</div>
<div>{d.extra}</div>
Expand Down

0 comments on commit e56d929

Please sign in to comment.