Skip to content

waitForInitialization should wait until flags have been initialized #114

@RedbackThomson

Description

@RedbackThomson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions