Memory‑Leak Mitigation in MUI v5 SSR: Unique Emotion Cache Key vs. Legacy JSS Engine
Goal Prevent the accumulation of stale CSS nodes that occurs when Material‑UI v5’s Emotion cache is shared across server‑side rendering requests. Constraint In a Next.js or other SSR framework, the same Emotion cache instance is reused for every request unless a new cache is created. This leads to memory growth and DOM bloat. The documented fix is to supply