From 2b59913063d7115cf36c7a80560a933a911fccd2 Mon Sep 17 00:00:00 2001 From: "sentry[bot]" <39604003+sentry[bot]@users.noreply.github.com> Date: Wed, 4 Mar 2026 10:11:52 +0000 Subject: [PATCH] Fix: Capture unhandled promise rejection with Sentry --- src/screens/ListApp.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/screens/ListApp.tsx b/src/screens/ListApp.tsx index b04d9e8..9054409 100644 --- a/src/screens/ListApp.tsx +++ b/src/screens/ListApp.tsx @@ -177,7 +177,11 @@ const ListApp = (props: Props) => { { - Promise.reject(new Error('Unhandled Promise Rejection')); + Promise.reject(new Error('Unhandled Promise Rejection')).catch( + (error: Error) => { + Sentry.captureException(error); + }, + ); }}> Unhandled Promise Rejection