debug: add prefetch=false to logout link
This commit is contained in:
@@ -44,7 +44,7 @@ export default async function Sidebar({ lang }: LangParams) {
|
|||||||
</Fragment>
|
</Fragment>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
<Link href={logout[lang]} variant="sidebar">
|
<Link prefetch={false} href={logout[lang]} variant="sidebar">
|
||||||
Log out <LogOut height={16} width={16} />
|
Log out <LogOut height={16} width={16} />
|
||||||
</Link>
|
</Link>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ export default function Link({
|
|||||||
href,
|
href,
|
||||||
partialMatch = false,
|
partialMatch = false,
|
||||||
size,
|
size,
|
||||||
|
prefetch,
|
||||||
variant,
|
variant,
|
||||||
...props
|
...props
|
||||||
}: LinkProps) {
|
}: LinkProps) {
|
||||||
@@ -25,5 +26,12 @@ export default function Link({
|
|||||||
size,
|
size,
|
||||||
variant,
|
variant,
|
||||||
})
|
})
|
||||||
return <NextLink className={classNames} href={href} {...props} />
|
return (
|
||||||
|
<NextLink
|
||||||
|
prefetch={prefetch}
|
||||||
|
className={classNames}
|
||||||
|
href={href}
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,4 +7,5 @@ export interface LinkProps
|
|||||||
VariantProps<typeof linkVariants> {
|
VariantProps<typeof linkVariants> {
|
||||||
href: string
|
href: string
|
||||||
partialMatch?: boolean
|
partialMatch?: boolean
|
||||||
|
prefetch?: boolean
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user