-
Notifications
You must be signed in to change notification settings - Fork 30k
docs: dynamic routes w/ gsP #86402
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
docs: dynamic routes w/ gsP #86402
Conversation
docs/01-app/03-api-reference/03-file-conventions/dynamic-routes.mdx
Outdated
Show resolved
Hide resolved
docs/01-app/03-api-reference/03-file-conventions/dynamic-routes.mdx
Outdated
Show resolved
Hide resolved
docs/01-app/03-api-reference/03-file-conventions/dynamic-routes.mdx
Outdated
Show resolved
Hide resolved
docs/01-app/03-api-reference/03-file-conventions/dynamic-routes.mdx
Outdated
Show resolved
Hide resolved
docs/01-app/03-api-reference/03-file-conventions/dynamic-routes.mdx
Outdated
Show resolved
Hide resolved
docs/01-app/03-api-reference/03-file-conventions/dynamic-routes.mdx
Outdated
Show resolved
Hide resolved
docs/01-app/03-api-reference/03-file-conventions/dynamic-routes.mdx
Outdated
Show resolved
Hide resolved
docs/01-app/03-api-reference/03-file-conventions/dynamic-routes.mdx
Outdated
Show resolved
Hide resolved
docs/01-app/03-api-reference/03-file-conventions/dynamic-routes.mdx
Outdated
Show resolved
Hide resolved
docs/01-app/03-api-reference/03-file-conventions/dynamic-routes.mdx
Outdated
Show resolved
Hide resolved
docs/01-app/03-api-reference/03-file-conventions/dynamic-routes.mdx
Outdated
Show resolved
Hide resolved
docs/01-app/03-api-reference/03-file-conventions/dynamic-routes.mdx
Outdated
Show resolved
Hide resolved
docs/01-app/03-api-reference/03-file-conventions/dynamic-routes.mdx
Outdated
Show resolved
Hide resolved
|
|
||
| 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` |
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.
Great example
docs/01-app/03-api-reference/04-functions/generate-static-params.mdx
Outdated
Show resolved
Hide resolved
docs/01-app/03-api-reference/03-file-conventions/dynamic-routes.mdx
Outdated
Show resolved
Hide resolved
docs/01-app/03-api-reference/03-file-conventions/dynamic-routes.mdx
Outdated
Show resolved
Hide resolved
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.
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?)
No description provided.