Skip to content

[HIGH] No ErrorBoundary - unhandled errors crash the entire app #23

Description

@saidai-bhuvanesh

🛡️ Resilience: Missing Error Boundary Component

Severity: High
Files: All page components

Problem

No error boundary wraps components. Any unhandled error crashes the entire page.

// No error boundary exists in the codebase
// If API fails, the page just shows white screen

Impact

  • Poor user experience when errors occur
  • All-or-nothing rendering (no graceful degradation)
  • Hard to debug production issues

Fix

Create ErrorBoundary component:

class ErrorBoundary extends React.Component {
  static getDerivedStateFromError(error) {
    return { hasError: true, error };
  }
  
  componentDidCatch(error, info) {
    console.error("Error:", error, info);
  }
  
  render() {
    if (this.state.hasError) {
      return <FallbackUI error={this.state.error} />;
    }
    return this.props.children;
  }
}

Labels: enhancement, ssoc26

Metadata

Metadata

Labels

enhancementNew feature or requestgood first issueGood for newcomersssoc26Main tag identifying the repository for Social Summer of Code 2026

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions