Skip to content

Commit 6aa074b

Browse files
authored
Disable prefetch by default (#708)
* disable prefetch by default * fix lint
1 parent 56e259a commit 6aa074b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/link/link.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ import NextLink from 'next/link';
55
import { styled } from './link.styles';
66
import { type Props } from './link.types';
77

8-
export default function Link({ href, children, ...restProps }: Props) {
8+
export default function Link({
9+
href,
10+
children,
11+
prefetch = false,
12+
...restProps
13+
}: Props) {
914
return (
1015
<styled.LinkBase {...restProps} $as={NextLink} href={href} disabled={!href}>
1116
{children}

0 commit comments

Comments
 (0)