Skip to content

fix: load Mermaid ssr:false (kill homepage React #418)#27

Merged
Xaxis merged 1 commit into
mainfrom
fix/mermaid-hydration
May 25, 2026
Merged

fix: load Mermaid ssr:false (kill homepage React #418)#27
Xaxis merged 1 commit into
mainfrom
fix/mermaid-hydration

Conversation

@Xaxis
Copy link
Copy Markdown
Contributor

@Xaxis Xaxis commented May 25, 2026

Pre-existing hydration mismatch on the docs homepage (mermaid diagram renders client-side; SSR output never matches). Loading Mermaid via next/dynamic ssr:false removes it from hydration entirely. No functional change — diagram still renders, just client-only after a stable placeholder.

Mermaid renders its SVG client-side (dynamic import('mermaid') + DOM
injection), so SSR output never matches the client → React #418 hydration
mismatch on any page with a diagram (the docs homepage). Loading it via
next/dynamic ssr:false removes it from SSR/hydration entirely; it mounts
client-side after a stable placeholder. Pre-existing bug, unrelated to the
design-system convergence.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
oc-docs Ready Ready Preview, Comment May 25, 2026 10:19pm

Request Review

@Xaxis Xaxis merged commit 8b80d68 into main May 25, 2026
4 checks passed
@Xaxis Xaxis deleted the fix/mermaid-hydration branch May 25, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant