You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(generate-static-params): add typescript example and missing jsx switcher (vercel#73962)
Hi Team.
This PR enhances the Generate Static Pararms documentation by adding
TypeScript examples, and adding missing jsx switcher code blocks, which
previously caused some content to disappear when switching to JavaScript
due to the absence of corresponding jsx examples.
Co-authored-by: JJ Kasper <jj@jjsweb.site>
Copy file name to clipboardExpand all lines: docs/01-app/04-api-reference/04-functions/generate-static-params.mdx
+59-2Lines changed: 59 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,29 @@ description: API reference for the generateStaticParams function.
5
5
6
6
The `generateStaticParams` function can be used in combination with [dynamic route segments](/docs/app/building-your-application/routing/dynamic-routes) to [**statically generate**](/docs/app/building-your-application/rendering/server-components#static-rendering-default) routes at build time instead of on-demand at request time.
Then, by using the [`dynamicParams`](/docs/app/api-reference/file-conventions/route-segment-config#dynamicparams) segment config option, you can control what happens when a dynamic segment is visited that was not generated with `generateStaticParams`.
0 commit comments