1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-31 00:33:33 +00:00

[PM-31012] Improve loading time for lock component (#18450)

* Improve loading time for lock component

* Reset interval to 1000

* Remove interval import
This commit is contained in:
Bernd Schoolmann
2026-01-29 15:03:00 +01:00
committed by GitHub
parent 6d1693050c
commit 29523b6e74

View File

@@ -6,7 +6,7 @@ import {
BehaviorSubject,
filter,
firstValueFrom,
interval,
timer,
mergeMap,
Subject,
switchMap,
@@ -199,7 +199,7 @@ export class LockComponent implements OnInit, OnDestroy {
}
private listenForUnlockOptionsChanges() {
interval(1000)
timer(0, 1000)
.pipe(
mergeMap(async () => {
if (this.activeAccount?.id != null) {