Merged PR 1614: #4238 Removed QueryChangeDebounce

#4238 Removed QueryChangeDebounce
This commit is contained in:
Nino Righi
2023-07-31 11:44:54 +00:00
committed by Lorenz Hilpert
parent 526ba9f2a0
commit 08601203df
2 changed files with 0 additions and 9 deletions

View File

@@ -22,7 +22,6 @@
(search)="search(filter)"
[hint]="message$ | async"
[scanner]="true"
(queryChange)="queryChangeDebounce()"
></shared-filter-input-group-main>
<a
*ngIf="!(isDesktop$ | async)"

View File

@@ -21,8 +21,6 @@ export class CustomerOrderSearchMainComponent implements OnInit, OnDestroy {
loading$ = this._customerOrderSearchStore.fetching$;
queryChanged$ = new BehaviorSubject<boolean>(false);
message$ = this._customerOrderSearchStore.message$;
lastProcessId: number | undefined;
@@ -86,7 +84,6 @@ export class CustomerOrderSearchMainComponent implements OnInit, OnDestroy {
combineLatest([this.processId$, this._activatedRoute.queryParams])
.pipe(debounceTime(50))
.subscribe(([processId, queryParams]) => {
this.queryChanged$.next(false);
this.removeBreadcrumbs(processId);
this.updateBreadcrumb(processId, queryParams);
})
@@ -190,9 +187,4 @@ export class CustomerOrderSearchMainComponent implements OnInit, OnDestroy {
await this._router.navigate([], { queryParams });
this.updateBreadcrumb(processId, queryParams);
}
queryChangeDebounce = debounce(async () => {
this.queryChanged$.next(true);
await this.updateQueryParams(this.processId);
}, 500);
}