-
Notifications
You must be signed in to change notification settings - Fork 36
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
web-sdk: onContextChange not called for named provider #488
Comments
Hey @thomaspoignant, I would also expect the SDK to call |
Ya I agree this is a bug. Context is global in the static context, that's a clear case. I think this is just a bug that we missed when implementing the js-sdk. |
I would start to implement this now. |
Hey @lukas-reining, yes, it should cover the static context change. That spec change should be merged today 😄 |
What do we do about this? @beeme1mr |
Observed behavior
I am not sure to understand how do you change the context for a named provider?
Let's say I am doing something like this :
Expected Behavior
I was expecting the function
onContextChange
of the provider to be called when changing the context.But when looking at the code
js-sdk/packages/client/src/open-feature.ts
Lines 37 to 41 in 5725194
it seems that this function is called only for the default provider.
Is it something expected? Did I miss something to be sure that
onContextChange
is call on the provider.The text was updated successfully, but these errors were encountered: