Skip to content

fix(cockpit): guard against object rendering in demo components during streaming#83

Merged
blove merged 1 commit into
mainfrom
claude/fix-object-rendering
Apr 9, 2026
Merged

fix(cockpit): guard against object rendering in demo components during streaming#83
blove merged 1 commit into
mainfrom
claude/fix-object-rendering

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented Apr 9, 2026

During streaming, props like { $state: '/user/name' } arrive as objects before resolution. DemoTextComponent and DemoHeadingComponent now check typeof content === 'string' before rendering, showing skeletons for unresolved bindings instead of [object Object].

@blove blove merged commit d5f83ba into main Apr 9, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 9, 2026

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

Project Deployment Actions Updated (UTC)
cacheplane Building Building Preview, Comment Apr 9, 2026 5:25pm

Request Review

@blove blove deleted the claude/fix-object-rendering branch May 7, 2026 16:30
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