mirror of
https://github.com/bitbaum/botsmann.git
synced 2026-12-05 06:59:11 +01:00
Fix NotFoundError when navigating away from blog posts with giscus comments. - Replace React-managed cleanup with manual innerHTML clearing - Add isClient state to prevent SSR hydration issues - Use figure/figcaption for images to avoid invalid HTML nesting - Add smart p component to detect block children and render as div The error occurred because giscus creates DOM elements that React doesn't track. Using innerHTML='' in cleanup prevents React reconciliation conflicts. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>