Angular · Senior · Question 22 of 75
What does hydration do in an Angular SSR app?
- ✓Correct answer: Reuses the server-rendered DOM and attaches listeners instead of destroying and re-rendering it
- 2Re-renders the page from scratch on the client after SSR
- 3Downloads the HTML again in the background
Explanation
Enabled with provideClientHydration(). Reusing the DOM avoids flicker and improves LCP and CLS. It requires the server and client to produce the same DOM structure.