Skip to content

feat: add error boundaries and global error handling#378

Merged
Cedarich merged 1 commit into
StayLitCodes:mainfrom
zhero-o:error-handling
Jun 2, 2026
Merged

feat: add error boundaries and global error handling#378
Cedarich merged 1 commit into
StayLitCodes:mainfrom
zhero-o:error-handling

Conversation

@zhero-o
Copy link
Copy Markdown
Contributor

@zhero-o zhero-o commented Jun 2, 2026

  • Add reusable ErrorBoundary class component with custom fallback UI, onError callback, resetKeys support, and retry functionality
  • Add shared ErrorFallback component with Report Issue link used across all error surfaces
  • Add Next.js error.tsx route segments for app, dashboard, escrow, and admin sections
  • Add global-error.tsx for catastrophic root-level failures
  • Add useApiError hook with standardised toast notifications, 401/403/500 handling, and wrapAsync utility
  • Integrate ErrorBoundary into Providers to catch client-side render errors

Closes #262

- Add reusable ErrorBoundary class component with custom fallback UI,
  onError callback, resetKeys support, and retry functionality
- Add shared ErrorFallback component with Report Issue link used across
  all error surfaces
- Add Next.js error.tsx route segments for app, dashboard, escrow, and
  admin sections
- Add global-error.tsx for catastrophic root-level failures
- Add useApiError hook with standardised toast notifications, 401/403/500
  handling, and wrapAsync utility
- Integrate ErrorBoundary into Providers to catch client-side render errors

Closes StayLitCodes#262
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 2, 2026

@zhero-o Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Cedarich Cedarich merged commit 06d4332 into StayLitCodes:main Jun 2, 2026
1 check 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.

[Frontend] Error Boundary Components and Global Error Handling

2 participants