Incremental Hydration in Angular
summary
Angular adds incremental hydration with server-rendered jsaction markers for event recording, JSON state in ng-h data and ng-h-defer blocks, and a single global listener that records interactions and replays them when the matching component hydrates. Demo shows partial hydration (movie list and theme toggle) where clicks are recorded and replayed, improving LCP and INP by deferring bundles and hydrating on idle, interaction, or never; result reduces shipped JS, preserves user actions, and works in the demo.
AI-written summary · about
