-
-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix error boundary #3389
fix error boundary #3389
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
<Routes> | ||
{availableRoutes.map(route => ( | ||
<PlausibleProvider> | ||
<ErrorBoundary FallbackComponent={Error}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will catch all the unhandled errors except from the plausible errors
@@ -48,61 +48,67 @@ export const App = () => { | |||
|
|||
return ( | |||
<ErrorBoundary FallbackComponent={Error}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is to handle plausible errors from the plausible provider
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
About the changes
Move plausible available for the error boundary.
Previously:
After:
This is just a few LOC but the formatting kicked in
Important files
Discussion points