Skip to content

Fix: Capture unhandled promise rejection with Sentry#114

Draft
sentry[bot] wants to merge 1 commit intomasterfrom
seer/fix/capture-promise-rejection
Draft

Fix: Capture unhandled promise rejection with Sentry#114
sentry[bot] wants to merge 1 commit intomasterfrom
seer/fix/capture-promise-rejection

Conversation

@sentry
Copy link

@sentry sentry bot commented Mar 4, 2026

Fixes MOBILE-REACT-NATIVE-7. The issue was that: A demo button intentionally triggers an unhandled promise rejection, which the Sentry SDK successfully captures as designed.

  • Modified ListApp.tsx to capture unhandled promise rejections.
  • Added a .catch() block to the Promise.reject call.
  • Uses Sentry.captureException to report the error.

This fix was generated by Seer in Sentry, triggered by Angelo de Voer. 👁️ Run ID: 11138676

Not quite right? Click here to continue debugging with Seer.

@sentry sentry bot requested a review from Angelodaniel March 4, 2026 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants