NG.IX · Angular 22 practice question

A developer uses provideClientHydration in an Angular 22 app and wants stability debugging active in a production build to investigate a slow-stabilizing route. What must the developer do?

Choose one answer
Check answer and explanation

Correct answer: Add provideStabilityDebugging manually to the application providers, since it is only included by default in dev mode.

Explanation

While provideStabilityDebugging is provided by default in dev mode when using provideClientHydration, you must add it manually to the application providers to use it in production bundles (or in SSR apps without hydration).

Common trap

Assuming provideClientHydration keeps stability debugging on in production is tempting because it works automatically in dev mode, but default registration applies only to development builds. Looking for an angular.json flag is plausible for build-time toggles, yet Angular exposes provideStabilityDebugging as a standard provider function you register manually.

Source: Angular docs: Hydration — Debugging Application Stability
Checked against the cited text on 2026-11-25.

Report an error in this question