Skip to content

Commit

Permalink
disable prefetch for nav (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi authored Apr 29, 2023
1 parent bf44b47 commit 6889608
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function Header() {
return (
<header className={styles.header}>
<div className={styles.left}>
<Link href="/">
<Link href="/" prefetch={false}>
<span className={styles.logo}>
<span className={styles.n}>N</span>
</span>
Expand All @@ -25,14 +25,14 @@ export default function Header() {
<ul className={styles['nav-ul']}>
{navItems.map(({ href, title }, index) => (
<li key={index}>
<Link href={href}>{title}</Link>
<Link href={href} prefetch={false}>{title}</Link>
</li>
))}
</ul>
</div>
</div>
<div className={styles.right}>
<Link href="/" className={styles.login}>
<Link href="/" className={styles.login} prefetch={false}>
login
</Link>
</div>
Expand Down

1 comment on commit 6889608

@vercel
Copy link

@vercel vercel bot commented on 6889608 Apr 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.