From 5f951adc2c329dff9b5713d36b8045ba28eb57ca Mon Sep 17 00:00:00 2001 From: Nick Muller Date: Thu, 11 Jan 2024 16:50:58 +0100 Subject: [PATCH 1/2] Remove hover behaviour in Link documentation --- packages/next/src/client/link.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/src/client/link.tsx b/packages/next/src/client/link.tsx index dede1bd0404fc..d6fcd9b7d96dc 100644 --- a/packages/next/src/client/link.tsx +++ b/packages/next/src/client/link.tsx @@ -71,7 +71,7 @@ type InternalLinkProps = { /** * Prefetch the page in the background. * Any `` that is in the viewport (initially or through scroll) will be preloaded. - * Prefetch can be disabled by passing `prefetch={false}`. When `prefetch` is set to `false`, prefetching will still occur on hover. Pages using [Static Generation](/docs/basic-features/data-fetching/get-static-props.md) will preload `JSON` files with the data for faster page transitions. Prefetching is only enabled in production. + * Prefetch can be disabled by passing `prefetch={false}`. Pages using [Static Generation](/docs/basic-features/data-fetching/get-static-props.md) will preload `JSON` files with the data for faster page transitions. Prefetching is only enabled in production. * * @defaultValue `true` */ From ad661034ac7f7f39c86a87b0c82c0bcc68edb993 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Mon, 1 Apr 2024 11:25:35 -0700 Subject: [PATCH 2/2] Apply suggestions from code review --- packages/next/src/client/link.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/src/client/link.tsx b/packages/next/src/client/link.tsx index d6fcd9b7d96dc..708c0c7497118 100644 --- a/packages/next/src/client/link.tsx +++ b/packages/next/src/client/link.tsx @@ -71,7 +71,7 @@ type InternalLinkProps = { /** * Prefetch the page in the background. * Any `` that is in the viewport (initially or through scroll) will be preloaded. - * Prefetch can be disabled by passing `prefetch={false}`. Pages using [Static Generation](/docs/basic-features/data-fetching/get-static-props.md) will preload `JSON` files with the data for faster page transitions. Prefetching is only enabled in production. + * Prefetch can be disabled by passing `prefetch={false}`. When `prefetch` is set to `false`, prefetching will still occur on hover in pages router but not in app router. Pages using [Static Generation](/docs/basic-features/data-fetching/get-static-props.md) will preload `JSON` files with the data for faster page transitions. Prefetching is only enabled in production. * * @defaultValue `true` */