Skip to content

feat: Add ErrorBoundary and surface fetch failures to users#1280

Open
mox56 wants to merge 1 commit into
shyamtawli:masterfrom
mox56:Add-ErrorBoundary-and-surface-fetch-failures-to-users
Open

feat: Add ErrorBoundary and surface fetch failures to users#1280
mox56 wants to merge 1 commit into
shyamtawli:masterfrom
mox56:Add-ErrorBoundary-and-surface-fetch-failures-to-users

Conversation

@mox56

@mox56 mox56 commented Jun 27, 2026

Copy link
Copy Markdown

Description

This pull request improves the application error handling by introducing a React Error Boundary and providing a user friendly error state when profile data fails to load.

Related Issues

Closes issue#1266

Changes Proposed

  • Added an ErrorBoundary component using getDerivedStateFromError.
  • Wrapped the application with the new error boundary in pages/_app.js.
  • Updated ErrorPage to support reusable error messages and an optional Retry button.
  • Improved data fetching by displaying a visible error state instead of silently returning an empty array when requests fail.
  • Added a Retry button that allows users to retry loading profile data after a failed request.

Checklist

  • I have read and followed the Contribution Guidelines.
  • All new and existing tests passed.
  • My code follows the code style of this project.
  • I have updated the documentation to reflect the changes I've made.
  • The title of my pull request is a short description of the requested changes.

Screenshots

Untitled

Note to reviewers

This is my first contribution to the project. I appreciate any feedback or suggestions for improvement.

@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

@mox56 is attempting to deploy a commit to the Shyam Tawli's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, @mox56! 🎉 Thank you for opening a pull request. Your contribution is valuable and we appreciate your efforts to improve our project.

Soon the maintainers/owner will review it and provide you with feedback/suggestions.

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.

1 participant