What is your strategy for preventing hydration mismatch bugs?

Server-rendered apps can hit hydration mismatch issues from timing and data differences. What patterns prevent this in real projects.

WaffleFries

Make the first client render deterministic by banning Date.now(), Math.random(), locale formatting, and browser-only state in render, then move those into an effect or hydrate them from serialized server data.

Sora