Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Need to re-initialize the sdk when versionSuffix changes

Aperta
#850 5 commenti 6 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

@sbarrio ci sta già lavorando.

Dal 24/11/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

awaiting response enhancement
Feature description

When a user downloads an OTA update (a jsbundle), we do not fully restart the app (as it would be way slower).
We instead call the native side for a js bundle reload.

The issue we are facing is that the datadog initialize method, because already initialized when the app started, will skip the call to initialize after bundle js swap.

To clarify the process, this is happening:

  1. App starts
  2. jsbundle#111 is loaded
  3. datadog initialize is called with versionSuffix=111
  4. then, an OTA update is received
  5. jsbundle#112 is loaded (without a native app restart)
  6. datadog initialize is called with versionSuffix=112

that last call gets omitted... and the sdk interface does not offer any method to re initialize.

I was about to make a patch for the js side of the library, but it looks like it is a bit more involved, as the swift/kotlin implementations are also prepared for a single time initialization.

Is there a workaround for this?
Thanks

Proposed solution

No response

Other relevant information

No response

Lingua principale
TypeScript
Stelle
145
Fork
65
Merge medio
2g 19h
PR unite (30g)
21

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DataDog/dd-sdk-reactnative

Tutte le issue di DataDog/dd-sdk-reactnative

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.