NG.IX · Angular 22 practice question
A developer adds a hydrate on clause inside an Angular @defer block. What does the hydrate on clause control?
Check answer and explanation
Correct answer: The condition under which client-side hydration is triggered for that @defer block.
Explanation
In incremental hydration, hydrate on defines the condition that determines when hydration is triggered for that specific @defer block.
Common trap
Assuming hydrate on schedules server-side execution confuses SSR rendering with client-side hydration—the server renders the block up front while hydrate on controls when the client hydrates it. Linking hydrate on to disabling event replay is tempting because event replay is part of incremental hydration, yet hydrate on only specifies the hydration trigger condition.
Source: Angular docs: Incremental Hydration — `hydrate on`
Checked against the cited text on 2026-11-25.