Skip to content

React error boundary #182

Open
Open

Description

@blairg23

🧾 Title

React error boundary

🧠 Summary

Add a React error boundary component that catches render errors and shows a user-friendly fallback screen instead of a blank white page.

📦 Scope

A top-level ErrorBoundary component wrapping the entire app.

🚫 Out of Scope

Per-route or per-module error boundaries.

✅ Acceptance Criteria

  • ErrorBoundary component created
  • Wraps the root render in main.tsx
  • Shows a clear 'Something went wrong' message with a reload button on error
  • Error details logged to console in development only

🧪 Testing / Validation

  • Throw a deliberate error inside a child component and verify the fallback renders instead of a blank screen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestepic:foundationInfrastructure, auth, and platform setup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions