You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -155,9 +155,16 @@ Sometimes, the value of a flag must consider some dynamic criteria about the app
155
155
In OpenFeature, we refer to this as [targeting](/specification/glossary#targeting).
156
156
If the flag management system you're using supports targeting, you can provide the input data using the [evaluation context](/docs/reference/concepts/evaluation-context).
157
157
158
+
```ts
159
+
// Sets global context during provider registration
Once context has been defined for a named client, it will override the global context for all clients using the associated provider.
256
+
Context can be cleared using for a named provider using `OpenFeature.clearContext("my-domain")` or call `OpenFeature.clearContexts()` to reset all context.
257
+
233
258
### Eventing
234
259
235
260
Events allow you to react to state changes in the provider or underlying flag management system, such as flag definition changes, provider readiness, or error conditions.
0 commit comments