[PR #202] [MERGED] Show error stack trace when an error is thrown in React render #368

Closed
opened 2026-03-02 23:46:10 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/202
Author: @remorses
Created: 10/6/2025
Status: Merged
Merged: 10/6/2025
Merged by: @kommander

Base: mainHead: errorboundary


📝 Commits (3)

📊 Changes

2 files changed (+36 additions, -1 deletions)

View changed files

packages/react/src/components/error-boundary.tsx (+30 -0)
📝 packages/react/src/reconciler/renderer.ts (+6 -1)

📄 Description

Added an ErrorBoundary component that displays the error stack trace instead of a black screen

Screenshot 2025-10-06 at 13 33 17

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opentui/pull/202 **Author:** [@remorses](https://github.com/remorses) **Created:** 10/6/2025 **Status:** ✅ Merged **Merged:** 10/6/2025 **Merged by:** [@kommander](https://github.com/kommander) **Base:** `main` ← **Head:** `errorboundary` --- ### 📝 Commits (3) - [`f7c0198`](https://github.com/anomalyco/opentui/commit/f7c019888066d584537d9d5c552f0dbeb5e5a19a) add error boundary - [`35501b2`](https://github.com/anomalyco/opentui/commit/35501b25b5cafdeaec674c1251f4d5bf39278833) Create error-boundary.tsx - [`85dc70b`](https://github.com/anomalyco/opentui/commit/85dc70bfee3fc013bf5134d3b101adeb65fb81fe) Update error-boundary.tsx ### 📊 Changes **2 files changed** (+36 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `packages/react/src/components/error-boundary.tsx` (+30 -0) 📝 `packages/react/src/reconciler/renderer.ts` (+6 -1) </details> ### 📄 Description Added an ErrorBoundary component that displays the error stack trace instead of a black screen <img width="1146" height="488" alt="Screenshot 2025-10-06 at 13 33 17" src="https://github.com/user-attachments/assets/648acae3-fca3-4677-bd93-9519465b3f75" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 23:46:10 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#368
No description provided.