Error boundary template/example
I'm looking for an example of an app-wide error boundary that will show a custom page when a ConvexError is thrown in mutations or queries. Does anyone have a simple example of this?
3 Replies
Error Handling | Convex Developer Hub
There are four reasons why your Convex
Yeah I use the one from Sentry to wrap my app, and another from expo router to handle unauth redirects.
This could be a useful example of a vanilla Error Boundary:
https://github.com/get-convex/templates/blob/main/template-react-vite-clerk-shadcn/src/ErrorBoundary.tsx
And this is a helpful package for common scenarios:
https://github.com/bvaughn/react-error-boundary
GitHub
templates/template-react-vite-clerk-shadcn/src/ErrorBoundary.tsx at...
Contribute to get-convex/templates development by creating an account on GitHub.
GitHub
GitHub - bvaughn/react-error-boundary: Simple reusable React error ...
Simple reusable React error boundary component. Contribute to bvaughn/react-error-boundary development by creating an account on GitHub.