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
The `tracking API` enables the association of feature flag evaluations with subsequent actions or application states, in order to facilitate experimentation and analysis of the impact of feature flags on business objectives.
Signed-off-by: Todd Baert <[email protected]>
Copy file name to clipboardExpand all lines: packages/react/src/context/use-context-mutator.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ export type ContextMutationOptions = {
15
15
16
16
exporttypeContextMutation={
17
17
/**
18
-
* A function to set the desired context (see: {@link ContextMutationOptions} for details).
18
+
* Context-aware function to set the desired context (see: {@link ContextMutationOptions} for details).
19
19
* There's generally no need to await the result of this function; flag evaluation hooks will re-render when the context is updated.
20
20
* This promise never rejects.
21
21
* @param updatedContext
@@ -25,10 +25,10 @@ export type ContextMutation = {
25
25
};
26
26
27
27
/**
28
-
* Get function(s) for mutating the evaluation context associated with this domain, or the default context if `defaultContext: true`.
28
+
* Get context-aware tracking function(s) for mutating the evaluation context associated with this domain, or the default context if `defaultContext: true`.
29
29
* See the {@link https://openfeature.dev/docs/reference/technologies/client/web/#targeting-and-context|documentation} for more information.
30
30
* @param {ContextMutationOptions} options options for the generated function
31
-
* @returns {ContextMutation} function(s) to mutate context
31
+
* @returns {ContextMutation} context-aware function(s) to mutate evaluation context
0 commit comments