Skip to content

fix(#961): wrap home page in RouteErrorBoundary - #967

Open
DevSolex wants to merge 1 commit into
chunks-labz:mainfrom
DevSolex:fix/961-home-page-route-error-boundary
Open

fix(#961): wrap home page in RouteErrorBoundary#967
DevSolex wants to merge 1 commit into
chunks-labz:mainfrom
DevSolex:fix/961-home-page-route-error-boundary

Conversation

@DevSolex

Copy link
Copy Markdown
Contributor

Summary

Closes #961

The home page (/) was missing a RouteErrorBoundary wrapper, unlike other pages in the app.

Changes

New: web/app/components/RouteErrorBoundary.tsx

A new route-level error boundary component that:

  • Catches runtime errors thrown inside any wrapped page
  • Displays a user-friendly error screen with Reload Page and Go Home actions
  • Shows full error stack in development mode via a collapsible <details> block
  • Logs errors to the console with route context for debugging
  • Accepts an optional routeName prop to identify the route in error messages

Updated: web/app/page.tsx

  • Extracted page content into HomeContent (inner component)
  • Wrapped HomeContent in <RouteErrorBoundary routeName="Home">
  • Removed the unused variable unusedVar

Testing

  • TypeScript structure is consistent with the existing ErrorBoundary and WalletErrorBoundary patterns in the codebase
  • No new dependencies introduced

@DevSolex
DevSolex requested a review from dimka90 as a code owner July 30, 2026 08:42
- Create RouteErrorBoundary component in web/app/components/
- Wrap the Home page (web/app/page.tsx) with RouteErrorBoundary
- RouteErrorBoundary catches runtime errors per-route, shows a
  user-friendly error UI with Reload and Go Home actions, and
  logs errors to the console (with stack trace in development)
- Also removed the unused variable 'unusedVar' from page.tsx

Closes chunks-labz#961
@DevSolex
DevSolex force-pushed the fix/961-home-page-route-error-boundary branch from fe3949c to 1f90741 Compare July 30, 2026 08:47
@drips-wave

drips-wave Bot commented Jul 30, 2026

Copy link
Copy Markdown

@DevSolex 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Home page is not wrapped in RouteErrorBoundary unlike all other pages

1 participant