From cec9d02dee2ab2c6d100ad3cbcafa4c8d6ab4805 Mon Sep 17 00:00:00 2001 From: Marcial Cambronero Date: Wed, 19 Oct 2022 18:51:51 -0600 Subject: [PATCH] Small change to note `` executes server methods (#41577) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I stumbled upon a lack of clarity when using `` where I believed it didn't execute the server methods before navigation. This change makes it a bit more clear ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm lint` - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md) Co-authored-by: Balázs Orbán <18369201+balazsorban44@users.noreply.github.com> Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com> --- docs/routing/introduction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/routing/introduction.md b/docs/routing/introduction.md index 4fb506cbf7fa7..662c395937ff5 100644 --- a/docs/routing/introduction.md +++ b/docs/routing/introduction.md @@ -68,7 +68,7 @@ The example above uses multiple links. Each one maps a path (`href`) to a known - `/about` → `pages/about.js` - `/blog/hello-world` → `pages/blog/[slug].js` -Any `` in the viewport (initially or through scroll) will be prefetched by default (including the corresponding data) for pages using [Static Generation](/docs/basic-features/data-fetching/get-static-props.md). The corresponding data for [server-rendered](/docs/basic-features/data-fetching/get-server-side-props.md) routes is _not_ prefetched. +Any `` in the viewport (initially or through scroll) will be prefetched by default (including the corresponding data) for pages using [Static Generation](/docs/basic-features/data-fetching/get-static-props.md). The corresponding data for [server-rendered](/docs/basic-features/data-fetching/get-server-side-props.md) routes is fetched _only when_ the is clicked. ### Linking to dynamic paths