`ready` event is emitted on error when initializing client
gnerkus opened this issue · comments
Is your feature request related to a problem? Please describe.
A LaunchDarklyFlagFetchError
is sometimes thrown during client initialization. This seems to occur because the ready
event gets emitted as soon as the initialization logic has finished, regardless of whether it succeeded as explained here: launchdarkly/js-client-sdk#113 (comment)
Describe the solution you'd like
The ready
event is only emitted on successful initialization
Describe alternatives you've considered
The waitUntilReady
method call here
could be replaced with the
waitForInitialization
method as discussed here:launchdarkly/js-client-sdk#113 (comment)
Awesome. Thanks for letting me know this exists. Wasn't aware.