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