From ec74c3472d2d87d38488bdad3b7f0d8614f182b9 Mon Sep 17 00:00:00 2001 From: jramos0 Date: Fri, 3 Jul 2026 04:49:47 -0600 Subject: [PATCH] Changing debounce to throttle --- .../acceleration-stats/acceleration-stats.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/components/acceleration/acceleration-stats/acceleration-stats.component.ts b/frontend/src/app/components/acceleration/acceleration-stats/acceleration-stats.component.ts index 9735055c4..7eb26ce23 100644 --- a/frontend/src/app/components/acceleration/acceleration-stats/acceleration-stats.component.ts +++ b/frontend/src/app/components/acceleration/acceleration-stats/acceleration-stats.component.ts @@ -1,5 +1,5 @@ import { ChangeDetectionStrategy, Component, Input, OnChanges, OnInit } from '@angular/core'; -import { BehaviorSubject, EMPTY, Observable, merge, catchError, debounceTime, distinctUntilChanged, filter, switchMap, tap } from 'rxjs'; +import { BehaviorSubject, EMPTY, Observable, merge, catchError, debounceTime, distinctUntilChanged, filter, switchMap, tap, throttleTime } from 'rxjs'; import { ServicesApiServices } from '@app/services/services-api.service'; import { StateService } from '@app/services/state.service'; @@ -37,7 +37,7 @@ export class AccelerationStatsComponent implements OnInit, OnChanges { (delta) => !delta.reset && (!!delta.added.length || !!delta.removed.length) ), - debounceTime(2000) + throttleTime(2000) ); this.accelerationStats$ = merge(