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

#### 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.
Copy link
Collaborator Author

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:**
Copy link
Collaborator Author

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.
Copy link
Collaborator Author

@icyJoseph icyJoseph Nov 22, 2025

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.
Copy link
Collaborator Author

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

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.

3 participants