autoWrapExpoRouterErrorBoundary is opt-in but could be the default
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- react-native, typescript
- 領域
- build-system, mobile
調査の方向性
Start in packages/core/src/js/tools/metroconfig.ts and trace autoWrapExpoRouterErrorBoundary through withSentryConfig and getSentryExpoConfig. Validate the Babel rewrite against the supported Expo Router versions and route layouts, including aliased exports and existing imports. Done means a decided default for the next major version, with an escape hatch if needed, plus coverage for the validated structures.
索引モデルが issue の本文から書いたものです。
説明
autoWrapExpoRouterErrorBoundary (in withSentryConfig/getSentryExpoConfig, packages/core/src/js/tools/metroconfig.ts) auto-wraps Expo Router's per-route ErrorBoundary re-exports with Sentry.wrapExpoRouterErrorBoundary at build time, so render-phase errors that hit the fallback get captured without the user touching their route files.
It currently defaults to false (getsentry/sentry-react-native#6347), so Expo Router users only get this error capture if they know the option exists and opt in explicitly:
module.exports = getSentryExpoConfig(__dirname, {
autoWrapExpoRouterErrorBoundary: true,
});
Since the whole point is capturing errors users wouldn't otherwise think to instrument, most Expo Router apps are silently missing this coverage. Worth considering flipping the default to true in the next major version.
Needs scoping before landing:
- Confirm the babel rewrite (detecting
export { ErrorBoundary } from 'expo-router'and aliased variants) is safe to apply unconditionally across the range of Expo Router versions/route layouts we support - it already skips files that already importwrapExpoRouterErrorBoundary, but should be validated against a wider set of real app structures. - Decide whether this should ship default-on directly in 9.0, or default-on with an escape hatch (
autoWrapExpoRouterErrorBoundary: false) for a deprecation cycle.
- 主要言語
- TypeScript
- スター
- 1.8k
- フォーク
- 371
- 平均マージ
- 22時間 3分
- マージ済み PR(30日)
- 106
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getsentry/sentry-react-native のほかの issue
-
React-Native
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
getsentry/sentry-react-native#7073 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Improvement React-Native
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
getsentry/sentry-react-native#7055 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
React-Native Replays Task
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
getsentry/sentry-react-native#6680 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Improvement React-Native
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
getsentry/sentry-react-native#6143 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
React-Native Task User Feedbacks
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
getsentry/sentry-react-native#5932 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
getsentry/sentry-react-native の issue をすべて見る
似ている issue
-
area:config bug priority:medium
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Doezer/Questarr#1451 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
sidebandstudio/clawtrate#1156 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
WenyuChiou/agent-board#1993 ·
メンテナーはふだん 1 日以内に返信
-
bug design
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Colorado-Startups/coloradostartups.org#151 ·
メンテナーはふだん 1 日以内に返信
-
question
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
jarrodwatts/claude-hud#883 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信