-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
base: canary
Are you sure you want to change the base?
docs: dynamic routes w/ gsP #86402
Conversation
|
|
||
| #### With `generateStaticParams` + `<Suspense>` + `use cache` on page | ||
|
|
||
| Recommended for most use cases. Provides immediate UI for prerendered and previously visited routes, with disk persistence similar to ISR. |
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.
recommended if you are trying to do a 1:1 map to ISR
|
|
||
| Full page waits but cached to disk. Good for less-frequently-changing content. | ||
|
|
||
| **Properties:** |
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.
Verify the rendering preview of this entry - likely just noise, but in my editor it helped visually
|
|
||
| #### With `generateStaticParams` + `<Suspense>` | ||
|
|
||
| Good for frequently updating content where you don't need disk persistence. |
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.
As in, you might have several thousands of items, but only want a subset to be always readily available, and for the others, showing a loading spinner is ok
|
|
||
| #### With `generateStaticParams` + `use cache` on page (no Suspense) | ||
|
|
||
| Full page waits but cached to disk. Good for less-frequently-changing content. |
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.
Inverted case, you might have several thousands of items, but only want a subset to be always readily available, assuming there's tolerance for blocking navigations every now and then - I am almost just adding this for completeness sake tbh
No description provided.