@equinor/fusion
Advanced tools
Comparing version 0.1.18 to 0.1.19
@@ -6,3 +6,3 @@ import ApiClients from "../http/apiClients"; | ||
current: Context | null; | ||
previous: Context | null; | ||
history: Context[] | null; | ||
}; | ||
@@ -9,0 +9,0 @@ export default class ContextManager extends ReliableDictionary<ContextCache> { |
@@ -13,4 +13,10 @@ import { useState, useCallback, useEffect } from "react"; | ||
const currentContext = await this.getCurrentContextAsync(); | ||
const history = await this.getAsync("history"); | ||
await this.setAsync("current", context); | ||
await this.setAsync("previous", currentContext); | ||
if (!history) { | ||
await this.setAsync("history", [currentContext]); | ||
} | ||
else { | ||
await this.setAsync("history", [currentContext, ...history]); | ||
} | ||
} | ||
@@ -17,0 +23,0 @@ getCurrentContext() { |
{ | ||
"name": "@equinor/fusion", | ||
"version": "0.1.18", | ||
"version": "0.1.19", | ||
"description": "Everything a Fusion app needs to communicate with the core", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104677
2407