Open
Description
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
Labels
No labels