mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
Changing debounce to throttle
This commit is contained in:
parent
b5fed32f8b
commit
ec74c3472d
1 changed files with 2 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue