<Sentry.ErrorBoundary fallback="An error has occurred" showDialog>
developだとReactのエラー画面が出て、消すと元の画面。productionだと何も出ない
自前で送信前にフックして表示する
ts
Sentry.init({...
beforeSend(event, hint) {
// Check if it is an exception, and if so, show the report dialog
if (event.exception) {
Sentry.showReportDialog({ eventId: event.event_id });
}
return event;
},
});