Skip to content

Commit

Permalink
Merge pull request #260 from Flagsmith/fix/default-evaluation-context
Browse files Browse the repository at this point in the history
fix: Evaluation context overwritten on init
  • Loading branch information
kyle-ssg authored Oct 17, 2024
2 parents e2cfafd + 042ed1d commit a755ff4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion flagsmith-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ const Flagsmith = class {
withTraits?: ITraits|null= null
cacheOptions = {ttl:0, skipAPI: false, loadStale: false}
async init(config: IInitConfig) {
const evaluationContext = toEvaluationContext(config.evaluationContext || {});
const evaluationContext = toEvaluationContext(config.evaluationContext || this.evaluationContext);
try {
const {
environmentID,
Expand Down
2 changes: 1 addition & 1 deletion lib/flagsmith-es/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flagsmith-es",
"version": "7.0.0",
"version": "7.0.1",
"description": "Feature flagging to support continuous development. This is an esm equivalent of the standard flagsmith npm module.",
"main": "./index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion lib/flagsmith/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flagsmith",
"version": "7.0.0",
"version": "7.0.1",
"description": "Feature flagging to support continuous development",
"main": "./index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion lib/react-native-flagsmith/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-flagsmith",
"version": "7.0.0",
"version": "7.0.1",
"description": "Feature flagging to support continuous development",
"main": "./index.js",
"repository": {
Expand Down

0 comments on commit a755ff4

Please sign in to comment.