-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When bootstrapping a non valid object, it still resolves immediately #20
Comments
Hi - I think I need a little more information about exactly what you are doing on the back end. The |
fix updating secure mode hash with identify()
If we have an issue on the backend server (at the moment we’re fighting production proxy issues) then it’s meant to be online, but it isn’t so it’s seeding the front end with invalid values. And I was thinking the same could happen even once we fix our proxy issue if for instance there is a problem on our proxy or firewall. |
The dotnet sdk examples don’t suggest checking a is online like property before calling all flags state? |
Well, the property you would check if you were going to check something is the I understand not wanting to have to check anything, but I'm not sure it is correct to say that the default front-end behavior should be to ignore the values and contact the LaunchDarkly service instead if |
I don’t mind checking something but your documentation and example don’t - so it’s confusing. I’m just trying to help your future customers from confusion and bugs - please feel free to close this and if you consider I have a point to fix your examples/documentation. |
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
The text was updated successfully, but these errors were encountered: