mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 05:43:41 +00:00
Use unique port names for derived states (#8938)
This commit is contained in:
@@ -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,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user