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
📣 This was a draft for a while, but is now ready for review! 📣
This implements tracking as per spec, in the server, web, and react
SDKs.
I don't think the Angular or Nest SDKs need specific implementations,
but please advise (cc @luizgribeiro@lukas-reining).
Fixes: #1033Fixes: #1034
---------
Signed-off-by: Todd Baert <[email protected]>
Copy file name to clipboardexpand all lines: packages/react/src/context/use-context-mutator.ts
+3-3
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