next.js
23b1977e - docs: remove unstable_disableValidation recommendations (#94608)

Commit
118 days ago
docs: remove unstable_disableValidation recommendations (#94608) ### What? Removes `unstable_disableValidation` recommendations from all 14 insight-kind error pages and the `generateViewport` API reference. The key on `unstable_instant`'s object form is not going to ship as a recommended public API. ### Why? Each error page's **"Don't want this validation?"** block previously listed three opt-out levels: 1. **One segment** — `export const unstable_instant = false` 2. ~~**Layout and its children** — `export const unstable_instant = { unstable_disableValidation: true }`~~ ← dropped 3. **Entire app** — `experimental.instantInsights.validationLevel: 'manual-warning'` Dropping the middle bullet aligns the docs with the public-API surface we intend to keep. ### How? - Removed the `Layout and its children` bullet across 14 `errors/*.mdx` pages. - Removed the now-broken `See [Don't want this validation?] for the subtree-wide opt-out` reference in the in-body **Gotchas** sections. - Updated the `generate-viewport.mdx` API reference to drop the same dangling reference. - Framework source (`unstable_disableValidation` parsing in `app-segment-config.ts` and runtime handling in `instant-config.tsx`) is unchanged — that's a separate framework concern. <!-- NEXT_JS_LLM_PR -->
Author
Parents
Loading