Skip to content

Commit a755ff4

Browse files
authored
Merge pull request #260 from Flagsmith/fix/default-evaluation-context
fix: Evaluation context overwritten on init
2 parents e2cfafd + 042ed1d commit a755ff4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

flagsmith-core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ const Flagsmith = class {
273273
withTraits?: ITraits|null= null
274274
cacheOptions = {ttl:0, skipAPI: false, loadStale: false}
275275
async init(config: IInitConfig) {
276-
const evaluationContext = toEvaluationContext(config.evaluationContext || {});
276+
const evaluationContext = toEvaluationContext(config.evaluationContext || this.evaluationContext);
277277
try {
278278
const {
279279
environmentID,

lib/flagsmith-es/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flagsmith-es",
3-
"version": "7.0.0",
3+
"version": "7.0.1",
44
"description": "Feature flagging to support continuous development. This is an esm equivalent of the standard flagsmith npm module.",
55
"main": "./index.js",
66
"type": "module",

lib/flagsmith/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flagsmith",
3-
"version": "7.0.0",
3+
"version": "7.0.1",
44
"description": "Feature flagging to support continuous development",
55
"main": "./index.js",
66
"repository": {

lib/react-native-flagsmith/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-flagsmith",
3-
"version": "7.0.0",
3+
"version": "7.0.1",
44
"description": "Feature flagging to support continuous development",
55
"main": "./index.js",
66
"repository": {

0 commit comments

Comments
 (0)