You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is that in a lot of cases a key is configured for raygun after the library has initialised, to work around this a consumer can call rg4js('boot'); (typescript typings pr raised for the typings issue: DefinitelyTyped/DefinitelyTyped#61397 )
I have a few ideas how this could be resolved but wanted to bounce ideas with the raygun team before I make a PR. Simplest thing would be to flag is onLoadHandler has been executed, then if an API key is configured after this has been executed, simply execute onLoadHandler again (which is what people are effectively doing by manually calling boot).
Another would be a stepping retry as a floated promise.
Hey @Codex- , thanks for the reproduction and types PR!
@Widdershin is currently away for a bit, but I've spoken to @darcythomas and we can take a look if you want to make a PR. The simplest approach seems fine for now 👍
This makes it difficult to initialise
raygun4js
asynchronously, which is becoming more common.Related: #453, #383, #259
The text was updated successfully, but these errors were encountered: