← Issues index

10. Ad containers cause hydration mismatch — Low (PV)

ads/index.js AdContainer chooses mobile/desktop slot from global.width, set only in the browser (app/client/app.js:29). Server renders an empty .ad-background; React inserts the slot during hydration (Expected server HTML to contain a matching <div> on desktop). Ads still load correctly. 🛠️ Render both slot wrappers with CSS hide-mobile/hide-desktop, or decide slot after mount without changing markup.