Skip to content

Commit 87af884

Browse files
davila7claude
andcommitted
fix: Use client:only for SkillExplorer to prevent hydration mismatch
The marked library produces different HTML on server vs client, causing React error #418. Switching to client:only="react" skips SSR entirely. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e4d262e commit 87af884

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dashboard/src/pages/component/[type]/[...slug].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ const refs: string[] = (component as any)?.references ?? [];
289289
<h3 class="text-xs font-bold text-[var(--color-text-tertiary)] uppercase tracking-[0.08em] mb-4">Content</h3>
290290
{refs.length > 0 ? (
291291
<SkillExplorer
292-
client:load
292+
client:only="react"
293293
skillContent={component.content || ''}
294294
skillName={component.name}
295295
skillPath={component.path}

0 commit comments

Comments
 (0)