You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are using sentry.io, please post a link to your issue so we can take a look:
[Link to issue]
Configuration:
(@sentry/react-native)
Sentry.init({dsn: "YOUR DSN HERE",debug: true,});constApp=()=>{return(<Sentry.ErrorBoundaryfallback={<p>An error has occurred</p>}><Viewstyle={styles.container}><Text>Open up App.tsx to start working on your app!</Text><Buttontitle="Test Error Boundary fallback"onPress={()=>{thrownewError("Hello, again, Sentry!");}}/></View></Sentry.ErrorBoundary>);};
I have the following issue:
Error Boundary doesn't render the fallback component
Steps to reproduce:
Step 1: click on the button
Actual result:
No Error Boundary fallback is rendered
Expected result:
Error Boundary fallback is rendered
The text was updated successfully, but these errors were encountered:
the error boundaries only catch rendering errors. The error from your code snippet happens after the components were rendered. This is expected behaviour. The error from your snipped will cause a crash which will be reported by Sentry. To avid the crash you will have to use try/catch.
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)SDK version: ~5.22.0
react-native
version: 0.74.1 and 0.73.6Are you using Expo?
Are you using sentry.io or on-premise?
If you are using sentry.io, please post a link to your issue so we can take a look:
[Link to issue]
Configuration:
(
@sentry/react-native
)I have the following issue:
Error Boundary doesn't render the fallback component
Steps to reproduce:
Actual result:
No Error Boundary fallback is rendered
Expected result:
Error Boundary fallback is rendered
The text was updated successfully, but these errors were encountered: