Make `useDispatchedActionData` default to `true` in the next major version

Open
#5,986 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
58/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
react-native, typescript
Domain
mobile

Research direction

Locate the ReactNavigationIntegration definition and the useDispatchedActionData option, then check how its default is declared for the upcoming 9.x major version. Change the default to true and verify that the documented action-name, skipped-span, and filtering behavior remains covered by the existing integration tests, if present.

Written by the indexing model from the issue text.

Description

Improvement React-Native Traces

The ReactNavigationIntegration has a useDispatchedActionData option (currently defaulting to false) that uses dispatched action data to improve navigation span quality:

  • Names spans immediately from the action payload instead of starting with a generic "Route Change" name
  • Skips spans for actions without a known route name (GO_BACK, POP, POP_TO_TOP, RESET), reducing noise
  • Filters out non-navigation actions (SET_PARAMS, OPEN_DRAWER, CLOSE_DRAWER, TOGGLE_DRAWER)

This option was introduced as opt-in to avoid breaking changes, but it provides a strictly better experience for all users. In the next major version (9.x), we should flip the default to true.

Dominant language
TypeScript
Stars
1.8k
Forks
367
Avg merge
1d 6h
Merged PRs (30d)
94

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/sentry-react-native

All issues in getsentry/sentry-react-native

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.