-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Is your feature request related to a problem? Please describe.
Using the SDK, we sometimes randomly run into a situation where we are evaluating a flag right after the page is loaded. In the LaunchDarkly support documentation, the FLAG_NOT_FOUND is caused by the cache not yet being populated by the client. From diving into the code, it appears that the waitForInitialization does not wait until flags have been initialized from the LD service before it resolves (only from the bootstrap).
Describe the solution you'd like
waitForInitialization should wait for flags to have been loaded from the service (in my case, the stream) before resolving.
Describe alternatives you've considered
I have struggled to find any way to determine whether flags have been loaded, since all of this is abstracted away behind higher levels of the SDK.
Additional context
Add any other context about the feature request here.