@equinor/fusion-framework-module-context
Advanced tools
Comparing version 4.0.0-next.1 to 4.0.0-next.2
@@ -72,5 +72,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
if (__classPrivateFieldGet(this, _ContextProvider_event, "f")) { | ||
__classPrivateFieldGet(this, _ContextProvider_subscriptions, "f").add(__classPrivateFieldGet(this, _ContextProvider_contextClient, "f").currentContext$ | ||
.pipe(pairwise()) | ||
.subscribe(([previous, next]) => { | ||
__classPrivateFieldGet(this, _ContextProvider_subscriptions, "f").add(this.currentContext$.pipe(pairwise()).subscribe(([previous, next]) => { | ||
var _a; | ||
@@ -77,0 +75,0 @@ (_a = __classPrivateFieldGet(this, _ContextProvider_event, "f")) === null || _a === void 0 ? void 0 : _a.dispatchEvent('onCurrentContextChanged', { |
{ | ||
"name": "@equinor/fusion-framework-module-context", | ||
"version": "4.0.0-next.1", | ||
"version": "4.0.0-next.2", | ||
"description": "", | ||
@@ -47,3 +47,3 @@ "main": "./dist/esm/index.js", | ||
}, | ||
"gitHead": "eab345c2e841a9e5a0594a987295101eab7c28e7" | ||
"gitHead": "618efaca88d1af99e0dd0ebd035c2198e6a472fc" | ||
} |
@@ -141,11 +141,9 @@ import { | ||
this.#subscriptions.add( | ||
this.#contextClient.currentContext$ | ||
.pipe(pairwise()) | ||
.subscribe(([previous, next]) => { | ||
this.#event?.dispatchEvent('onCurrentContextChanged', { | ||
source: this, | ||
canBubble: true, | ||
detail: { previous, next }, | ||
}); | ||
}) | ||
this.currentContext$.pipe(pairwise()).subscribe(([previous, next]) => { | ||
this.#event?.dispatchEvent('onCurrentContextChanged', { | ||
source: this, | ||
canBubble: true, | ||
detail: { previous, next }, | ||
}); | ||
}) | ||
); | ||
@@ -152,0 +150,0 @@ this.#subscriptions.add( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
246404
1712