Angular · Senior · Question 23 of 75
What commonly breaks hydration with a mismatch error?
- ✓Correct answer: Direct DOM manipulation (e.g.
innerHTML,appendChild) or different markup on the server and client - 2Using signals in templates
- 3Using OnPush components
Explanation
Hydration expects the DOM it finds to match the component tree. Avoid manual DOM changes, fix invalid HTML (like <div> inside <p>), or mark a component with ngSkipHydration as a last resort.