mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
[PM-23199] improve search speed for large web vault (#15466)
This commit is contained in:
@@ -16,6 +16,7 @@ import {
|
|||||||
catchError,
|
catchError,
|
||||||
concatMap,
|
concatMap,
|
||||||
debounceTime,
|
debounceTime,
|
||||||
|
distinctUntilChanged,
|
||||||
filter,
|
filter,
|
||||||
first,
|
first,
|
||||||
map,
|
map,
|
||||||
@@ -334,7 +335,11 @@ export class VaultComponent implements OnInit, OnDestroy {
|
|||||||
);
|
);
|
||||||
|
|
||||||
this.searchText$
|
this.searchText$
|
||||||
.pipe(debounceTime(SearchTextDebounceInterval), takeUntil(this.destroy$))
|
.pipe(
|
||||||
|
debounceTime(SearchTextDebounceInterval),
|
||||||
|
distinctUntilChanged(),
|
||||||
|
takeUntil(this.destroy$),
|
||||||
|
)
|
||||||
.subscribe((searchText) =>
|
.subscribe((searchText) =>
|
||||||
this.router.navigate([], {
|
this.router.navigate([], {
|
||||||
queryParams: { search: Utils.isNullOrEmpty(searchText) ? null : searchText },
|
queryParams: { search: Utils.isNullOrEmpty(searchText) ? null : searchText },
|
||||||
|
|||||||
Reference in New Issue
Block a user