mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-04 18:37:45 +01:00
Use unique port names for derived states (#8937)
This commit is contained in:
parent
67280f48dd
commit
4c1c09f07f
@ -26,7 +26,12 @@ export class ForegroundDerivedStateProvider extends DefaultDerivedStateProvider
|
|||||||
_dependencies: TDeps,
|
_dependencies: TDeps,
|
||||||
storageLocation: [string, AbstractStorageService & ObservableStorageService],
|
storageLocation: [string, AbstractStorageService & ObservableStorageService],
|
||||||
): DerivedState<TTo> {
|
): DerivedState<TTo> {
|
||||||
const [cacheKey, storageService] = storageLocation;
|
const [location, storageService] = storageLocation;
|
||||||
return new ForegroundDerivedState(deriveDefinition, storageService, cacheKey, this.ngZone);
|
return new ForegroundDerivedState(
|
||||||
|
deriveDefinition,
|
||||||
|
storageService,
|
||||||
|
deriveDefinition.buildCacheKey(location),
|
||||||
|
this.ngZone,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user