[actionNameAttribute] prop doesn't accept value with curly braces
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 62/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- react-native, typescript
- Área
- mobile
Línea de trabajo
Start by reading the mobile React Native Babel plugin configuration and its handling of the configured actionNameAttribute. Compare how it processes a plain string prop with a value supplied in curly braces, then find the relevant plugin tests or add a focused regression case if the existing tests cover this behavior. Done means the expression value is used as the action name, with the regression case passing.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
Hey 👋🏻
I use actionNameAttribute = "testID" in @datadog/mobile-react-native config. And I'm using also @datadog/mobile-react-native-babel-plugin with following config:
{
actionNameAttribute: "testID",
components: {
useContent: true,
useNamePrefix: true,
tracked: [
{
name: "Button",
handlers: [{ event: "onPress", action: "TAP" }],
},
{
name: "TextButton",
handlers: [{ event: "onPress", action: "TAP" }],
},
{ name: "FAB", handlers: [{ event: "onPress", action: "TAP" }] },
{
name: "Checkbox",
handlers: [{ event: "onPress", action: "TAP" }],
},
{
name: "ListItem",
handlers: [{ event: "onPress", action: "TAP" }],
},
Then if testID is added to element with curly braces testID={"some_test_id"} I get aria-label, button content or something like that as action name instead of object property.
If I use plain string as testID it works, for example testID="some_test_id".
Problem is that I would like to have element ids not as plain string but reference to object key value: testID={TestIDs.someTestId} and keep them in one place instead of adding them inline.
Reproduction steps
- Add mentioned setup
- Add testID to some RN element, remember that test id should be added with curly braces
- Tap element to test what's logged as event name
SDK logs
No response
Expected behavior
Event names added with curly braces are sent properly to DD.
Affected SDK versions
3.9.0, 3.10.0
Latest working SDK version
Did you confirm if the latest SDK version fixes the bug?
Yes
Integration Methods
Yarn
React Native Version
0.79.5
Package.json Contents
"@datadog/mobile-react-native": "3.9.0",
"@datadog/mobile-react-native-babel-plugin": "3.9.0",
"@datadog/mobile-react-native-session-replay": "3.9.0",
"@datadog/mobile-react-navigation": "3.9.0",
"expo": "^53.0.0",
iOS Setup
No response
Android Setup
No response
Device Information
No response
Other relevant information
No response
- Lenguaje dominante
- TypeScript
- Estrellas
- 145
- Forks
- 65
- Merge medio
- 2 d 16 h
- PR fusionados (30 d)
- 20
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DataDog/dd-sdk-reactnative
-
Expose Android app startup Activity filtering in the React Native SDKPosiblemente ocupada @sbarrio la tomó hace 6 días. Abiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
DataDog/dd-sdk-reactnative#1485 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
GraphQL variables with non-ASCII contents will make Apollo Client request throw errorPosiblemente ocupada @cdn34dd la tomó hace 8 días. Abiertoawaiting response bug
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
DataDog/dd-sdk-reactnative#1482 · 2 comentarios · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Interaction tracking records nothing: the babel plugin's injected import makes Metro bundle a second copy of the SDK, so DdBabelInteractionTracking.config is set on a different class than instrumented handlers callPosiblemente ocupada @cdn34dd la tomó hace 6 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
DataDog/dd-sdk-reactnative#1377 · 1 comentario · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Babel plugin emits untransformed JSX when a tracked component has .map() children, breaking the Hermes buildPosiblemente ocupada @cdn34dd la tomó hace 6 días. Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 76/100
DataDog/dd-sdk-reactnative#1353 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
iOS: network error events from JS-tracked requests bypass the drop_resource deduplication and cannot be filtered — expose a native error mapper?Posiblemente ocupada @marco-saia-datadog la tomó hace 6 días. Abiertoenhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
DataDog/dd-sdk-reactnative#1338 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 2 días
Todos los issues de DataDog/dd-sdk-reactnative
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
xdjs/MusicNerdWeb#1532 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
sebastian-software/ardo#352 ·
Los mantenedores suelen responder en 1 día
-
@react95/core good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 3 días
-
@shikijs/stream: `ShikiStreamTokenizer.clone()` shares its `tokensStable` array with the originalPosiblemente ocupada @xyrolle la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 6 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día