getsentry / getsentry/sentry-react-native

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

Open
#5,986 1 comment 1 reaction 0 assignees View on GitHub
Improvement React-Native Traces
Dominant language
TypeScript
Stars
1.8k
Forks
366
Avg merge
1d 9h
Merged PRs (30d)
89

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.