Skip to content

fix(react-native): forward attributes added after init to native crash reports - #384

Merged
KishanPRao merged 2 commits into
mainfrom
fix/attr-after-init-native-crash
Aug 18, 2026
Merged

fix(react-native): forward attributes added after init to native crash reports#384
KishanPRao merged 2 commits into
mainfrom
fix/attr-after-init-native-crash

Conversation

@KishanPRao

@KishanPRao KishanPRao commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

Attributes added after initialize() never reached native crash reports, since the crash reporter instance was never assigned and the update listener would silently no-op.

Changes

  • packages/react-native/src/BacktraceClient.ts: assign _crashReporter while initializing native crash reporter, also fixing dispose.
  • packages/react-native/tests/nativeAttributePropagationTests.spec.ts: cover init-time, post-init and post-dispose attribute propagation to the native layer.

ref: BT-7455

@KishanPRao
KishanPRao requested a review from melekr August 17, 2026 13:32
@KishanPRao KishanPRao self-assigned this Aug 17, 2026
@KishanPRao KishanPRao added the bug Something isn't working label Aug 17, 2026
@KishanPRao
KishanPRao marked this pull request as ready for review August 18, 2026 12:52
@KishanPRao
KishanPRao merged commit 86ba31e into main Aug 18, 2026
10 checks passed
@KishanPRao
KishanPRao deleted the fix/attr-after-init-native-crash branch August 18, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant