Angular · Hydration · Senior · Debugging
What causes hydration mismatches?
Short Interview Answer
Different content on server vs client: random IDs, time-dependent text, browser-only branches, invalid HTML nesting.
Detailed Explanation
Use afterNextRender for client-only bits. Stabilize IDs. Validate HTML structure.