Skip to content

Commit

Permalink
docs: Spec the behaviour of putContext
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziodemaria authored Nov 11, 2024
1 parent df38f0b commit bddf7ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ It is also appended to the tracked events, making it a great way to create dimen
confidence.putContext(context: ["key": ConfidenceValue(string: "value")])
```

Note that a `ConfidenceValue` is accepted a map values, which has a constructor for all the value types
supported by Confidence.
Upon the returning of this function call, the updated context is appended to tracking events.
However, to relfect the new context in flags resolves, a new call to `fetchAndActivate()` is required.

### Resolving feature flags
Once the Confidence instance is **activated**, you can access the flag values using the
Expand Down

0 comments on commit bddf7ef

Please sign in to comment.