Skip to content

When bootstrapping a non valid object, it still resolves immediately #20

Open
@lukeapage

Description

@lukeapage

Describe the bug
When bootstrapping but the server is offline a $valid: false property is set:
https://github.com/launchdarkly/js-sdk-common/blob/master/src/index.js#L105

And you warn about that. But despite it not being valid and being an empty object, you do not wait for speaking to launch darkly and waitForInitialization resolves early, leaving an empty feature flag set.

Expected behavior
I expect if the bootstrap is not valid to behave as if it is not set.

We workaround this by checking $valid ourselves - but I don't think we should have to.

SDK version
The client api - 2.17.0

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