[PM-12609] Use shareReplay for allCiphers$ observable (#11229)

This commit is contained in:
Shane Melton 2024-09-24 14:30:06 -07:00 committed by GitHub
parent 4269489548
commit e6c3de9f47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -343,6 +343,7 @@ export class VaultComponent implements OnInit, OnDestroy {
await this.searchService.indexCiphers(ciphers, organization.id);
return ciphers;
}),
shareReplay({ refCount: true, bufferSize: 1 }),
);
const allCipherMap$ = allCiphers$.pipe(