mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-22 11:45:59 +01:00
Use unique port names for derived states (#8938)
This commit is contained in:
parent
4c1c09f07f
commit
a4f1a3f13d
@ -18,12 +18,12 @@ export class BackgroundDerivedStateProvider 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 BackgroundDerivedState(
|
return new BackgroundDerivedState(
|
||||||
parentState$,
|
parentState$,
|
||||||
deriveDefinition,
|
deriveDefinition,
|
||||||
storageService,
|
storageService,
|
||||||
cacheKey,
|
deriveDefinition.buildCacheKey(location),
|
||||||
dependencies,
|
dependencies,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user