Skip to content

Conversation

@icyJoseph
Copy link
Collaborator

No description provided.

@ijjk ijjk added created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation. labels Nov 22, 2025

When using `fetch` inside the `generateStaticParams` function, the requests are [automatically deduplicated](/docs/app/guides/caching#request-memoization). This avoids multiple network calls for the same data Layouts, Pages, and other `generateStaticParams` functions, speeding up build time.

### Dynamic GET Route Handlers with `generateStaticParams`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great example

@icyJoseph icyJoseph marked this pull request as ready for review December 8, 2025 19:37
Copy link
Contributor

@delbaoliveira delbaoliveira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Non-blocking: while rereading the doc, I noticed we use build-time validation a few times. I wonder if people will know what that is if you don't explain it upfront. Maybe we replace with with prerendering, since build-time validation is more of an internal framework process. It's good to be aware of it, but what a user should know is that there is a prerendering process, and if that doesn't happen, then the route will render at request time, and you need Suspense (should we also mention loading.ts?)

@icyJoseph icyJoseph merged commit 6cc51a3 into canary Dec 12, 2025
92 of 98 checks passed
@icyJoseph icyJoseph deleted the docs/dynamic-routes-gsp-route-handlers branch December 12, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants