Skip to content

Commit 924802b

Browse files
authored
docs: update domain context terminology (#1037)
Signed-off-by: Michael Beemer <[email protected]>
1 parent c4ccf5f commit 924802b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/web/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,20 +243,20 @@ For more details, please refer to the [providers](#providers) section.
243243
#### Manage evaluation context for domains
244244

245245
By default, domain-scoped clients use the global context.
246-
This can be overridden by explicitly setting context when registering the provider or by references the domain when updating context:
246+
This can be overridden by explicitly setting context when registering the provider or by referencing the domain when updating context:
247247

248248
```ts
249249
OpenFeature.setProvider("my-domain", new NewCachedProvider(), { targetingKey: localStorage.getItem("targetingKey") });
250250
```
251251

252-
To change context after the provider has been registered, use `setContext` with a name:
252+
To change context after the provider has been registered, use `setContext` with a domain:
253253

254254
```ts
255255
await OpenFeature.setContext("my-domain", { targetingKey: localStorage.getItem("targetingKey") })
256256
```
257257

258-
Once context has been defined for a named client, it will override the global context for all clients using the associated provider.
259-
Context can be cleared using for a named provider using `OpenFeature.clearContext("my-domain")` or call `OpenFeature.clearContexts()` to reset all context.
258+
Once a domain's context has been defined, it will override the global context for all clients bound to the domain.
259+
Context can be cleared for a domain by calling `OpenFeature.clearContext("my-domain")` or `OpenFeature.clearContexts()` to reset all context.
260260

261261
### Eventing
262262

0 commit comments

Comments
 (0)