(
@@ -240,8 +256,7 @@ const SuspensiveExample = () => (
)}
onError={(error, errorInfo) => {
- const eventId = Sentry.captureReactException(error, errorInfo)
- console.log('Error caught:', eventId)
+ Sentry.captureReactException(error, errorInfo)
}}
>
@@ -252,9 +267,9 @@ const SuspensiveExample = () => (
Main differences:
- `@sentry/react` automatically reports errors to Sentry
+- `@suspensive/react` provides `ErrorBoundary.Observer` to observe errors from all nested `` components at once, or `onError` prop for individual error handling
- `@suspensive/react` provides more flexible error handling with `shouldCatch`
- `resetError` → `reset` (in fallback props)
-- Manual Sentry integration gives you more control over what gets reported