Files
botsmann/components
g-butandClaude Opus 4.5 1e382d6974 fix: resolve giscus comments navigation error
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>
2026-01-11 22:57:37 +01:00
..