Skip to content

Commit 151ab70

Browse files
committed
fix: remove prefetch on links
1 parent af5066b commit 151ab70

File tree

6 files changed

+12
-1
lines changed

6 files changed

+12
-1
lines changed

pwa/app/(common)/community/contributors/components/ContributorItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default function ContributorItem({ contributor }: ContributorItemProps) {
2222
contributor.rank === 1 && "sm:flex-row sm:w-fit sm:max-w-none"
2323
)}
2424
href={`/community/contributors/${contributor.login}`}
25+
prefetch={false}
2526
>
2627
<div className="relative">
2728
<div

pwa/app/(common)/community/contributors/components/ContributorSmallItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export default function ContributorSmallItem({
1313
return (
1414
<Link
1515
href={`/community/contributors/${contributor.login}`}
16+
prefetch={false}
1617
className="relative flex justify-start items-center sm:transition-all group | sm:p-2 sm:duration-500 sm:border-px sm:border-gray-500/10 sm:hover:bg-gray-500/10 sm:dark:border-gray-500/30 sm:dark:hover:bg-gray-500/30"
1718
>
1819
{contributor.rank <= 100 ? (

pwa/components/con/speakers/SpeakerItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export default function SpeakerItem({
3232
>
3333
<Link
3434
href={url}
35+
prefetch={false}
3536
className={classNames(
3637
hoverable ? "group cursor-pointer" : "cursor-default",
3738
minified ? "flex flex-row items-center" : "text-center"

pwa/components/docs/DocMenu.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ function NavPart({ title, link, links, basePath, autoOpen }: NavPartProps) {
9797
<li className="mb-4" key={subLink.link}>
9898
<Link
9999
href={subLink.link}
100+
prefetch={false}
100101
className={classNames(
101102
"relative block pl-4 -translate-x-px border-l-px transition-all hover:border-l-gray-500",
102103
pathname === subLink.link

pwa/components/docs/MobileSidebar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export default function MobileSideBar({
5959
<Link
6060
className="transition-all hover:text-blue text-ellipsis whitespace-nowrap overflow-hidden"
6161
href={docLink.link}
62+
prefetch={false}
6263
>
6364
{docLink.title}
6465
</Link>

pwa/components/layout/NavLink.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ export default function NavLink({
1212
: {};
1313

1414
return href ? (
15-
<Link className={className} href={href} title={title} {...externalProps}>
15+
<Link
16+
prefetch={false}
17+
className={className}
18+
href={href}
19+
title={title}
20+
{...externalProps}
21+
>
1622
{children}
1723
</Link>
1824
) : (

0 commit comments

Comments
 (0)