Skip to content

Add error boundary to notebook preview#732

Merged
markmiro merged 1 commit intomainfrom
add-error-boundary-nb-preview
Feb 6, 2026
Merged

Add error boundary to notebook preview#732
markmiro merged 1 commit intomainfrom
add-error-boundary-nb-preview

Conversation

@markmiro
Copy link
Contributor

@markmiro markmiro commented Feb 6, 2026

Summary

  • Wrap notebook preview rendering components (SyntaxHighlighter, OutputsContainer, MarkdownCell, and the top-level cell list) in ErrorBoundary from react-error-boundary to prevent individual cell/output rendering failures from crashing the entire preview
  • Re-export ErrorBoundary from @runtimed/components for shared use

Test plan

  • Verify notebook preview renders normally with no regressions
  • Confirm that a rendering error in one cell is caught and displays a fallback message without breaking the rest of the notebook

Made with Cursor

@markmiro markmiro merged commit d0f1633 into main Feb 6, 2026
2 checks passed
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