mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
## What? Rename `experimental.dynamicIO` to `experimental.cacheComponents` across the Next.js codebase. ## Why? We're going to be merging the functionality of the `ppr`, `dynamicIO` and `useCache` experimental flags into the singular `cacheComponents` flag to reduce complexity of the codebase and simplify adoption for users wanting to experiment with experimental features. ## How? - Renamed the configuration option from `experimental.dynamicIO` to `experimental.cacheComponents` - Added deprecation handling with automatic migration for the old option name - Updated all documentation, tests, and internal references - Updated Rust code in SWC transforms and Turbopack - Maintained backward compatibility with deprecation warnings NAR-158
25 lines
793 B
TypeScript
25 lines
793 B
TypeScript
import { LinkAccordion } from '../../components/link-accordion'
|
|
|
|
// TODO: Once the appropriate API exists/is implemented, configure the param to
|
|
// be statically generated on demand but not at build time (`dynamicParams =
|
|
// true` isn't supported when `cacheComponents` is enabled.) For now this test case
|
|
// seems to work without extra configuration but it might not in the future.
|
|
|
|
export default function LazilyGeneratedParamsStartPage() {
|
|
return (
|
|
<>
|
|
<p>
|
|
Demonstrates that we can prefetch param that is not generated at build
|
|
time but is lazily generated on demand
|
|
</p>
|
|
<ul>
|
|
<li>
|
|
<LinkAccordion href="/lazily-generated-params/some-param-value">
|
|
Target
|
|
</LinkAccordion>
|
|
</li>
|
|
</ul>
|
|
</>
|
|
)
|
|
}
|