Skip to content

fix(app): add React Error Boundary for graceful error handling#66

Open
yashisrani wants to merge 1 commit into
seetadev:mainfrom
yashisrani:fix/app-crash
Open

fix(app): add React Error Boundary for graceful error handling#66
yashisrani wants to merge 1 commit into
seetadev:mainfrom
yashisrani:fix/app-crash

Conversation

@yashisrani
Copy link
Copy Markdown

Fix: #65

Summary

This PR adds a React Error Boundary to prevent the application from crashing silently on runtime errors.

Changes

  • Added ErrorBoundary component
  • Wrapped the main app component with ErrorBoundary
  • Added a user-friendly fallback UI with:
    • Reload Page button
    • Go to Home button
  • Improved app stability and error handling experience

Screenshot:

  • I added throw error code in home.tsx, and reload the app, then it started showing something wrong model.
Screenshot 2026-05-12 at 9 42 38 AM Screenshot 2026-05-12 at 9 35 51 AM

Result

Instead of showing a blank screen, the app now gracefully handles unexpected React errors and displays a recovery interface.

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.

Add Error Boundary to prevent silent app crashes

1 participant