-
Notifications
You must be signed in to change notification settings - Fork 28.4k
Docs IA 2.0: Create Dynamic Segments API reference, add example to getting started. #79439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: canary
Are you sure you want to change the base?
Conversation
|
All broken links are now fixed, thank you! |
| `app/[categoryId]/[itemId]/page.js` | `{ categoryId: string, itemId: string }` | | ||
|
||
> **Good to know**: This may be done automatically by the [TypeScript plugin](/docs/app/api-reference/config/typescript#ide-plugin) in the future. | ||
The primary benefit of the `generateStaticParams` function is its smart retrieval of data. If content is fetched within the `generateStaticParams` function using a `fetch` request, the requests are [automatically deduplicated](/docs/app/deep-dive/caching#request-memoization). This means a `fetch` request with the same arguments across multiple `generateStaticParams`, Layouts, and Pages will only be made once, which decreases build times. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember having a discussion about this very statement. I think it is correct, but just for x-ref, #73959
Closes: https://linear.app/vercel/issue/DOC-4676/dynamic-route-segments-api-reference
Redirects: #79439