Looking at the docs, it’s a bit unclear whether I need to wait for the onReady
callback to fire to track events.
My question is, do I have to write my code this way?
datadogRum.init(...)
dataDogRum.onReady(() => {
// Might throw an error, we should log them
renderApp()
})
Or does datadog buffer it, and let me dog something like:
datadogRum.init(...)
// Might throw an error, we should log them
renderApp()
In the latter case, will I lose any events that the renderApp
method sends, because I didn’t wait for the onReady()
? Or will RUM still track them and send them once its ready?