Merge #637: make the shipping error boundary render its fallback

This commit is contained in:
Addy Osmani authored and GitHub committed 2026-10-10 01:22:28 -07:00
commit 82fffc23f4
1 file changed
+6
+6
View File
@@ -190,6 +190,12 @@ Client metrics:
```typescript
// Set up error boundary with reporting
class ErrorBoundary extends React.Component {
state = { hasError: false };
static getDerivedStateFromError() {
return { hasError: true };
}
componentDidCatch(error: Error, info: React.ErrorInfo) {
// Report to error tracking service
reportError(error, {