autoWrapExpoRouterErrorBoundary is opt-in but could be the default
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 45/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- react-native, typescript
- Domínio
- build-system, mobile
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- TypeScript
- Estrelas
- 1.8k
- Forks
- 371
- Merge médio
- 22h 3min
- PRs com merge (30d)
- 106
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de getsentry/sentry-react-native
-
React-Native
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
getsentry/sentry-react-native#7073 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Improvement React-Native
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
getsentry/sentry-react-native#7055 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
React-Native Replays Task
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
getsentry/sentry-react-native#6680 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Improvement React-Native
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
getsentry/sentry-react-native#6143 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
React-Native Task User Feedbacks
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
getsentry/sentry-react-native#5932 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de getsentry/sentry-react-native
Issues semelhantes
-
area:config bug priority:medium
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Doezer/Questarr#1451 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
sidebandstudio/clawtrate#1156 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
WenyuChiou/agent-board#1993 ·
Mantenedores costumam responder em até 1 dia
-
bug design
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Colorado-Startups/coloradostartups.org#151 ·
Mantenedores costumam responder em até 1 dia
-
question
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
jarrodwatts/claude-hud#883 · 1 comentário ·
Mantenedores costumam responder em até 1 dia