rxjs using combineLatest to filter data stream – stream data is empty when it should not be
Advertisements I am using combine latest in an angular component to bring together a stream of data with a filter text input: export class RecordSearchComponent implements OnDestroy { @Input() gridData: Observable<TrainingRecord[]> = of([]); private filterSubject = new BehaviorSubject<string>(”); private readonly debounceTimeMs = 300; private filterInput$ = this.filterSubject.pipe( debounceTime(this.debounceTimeMs), distinctUntilChanged(), ) filteredData$ = combineLatest([this.filterInput$, this.gridData]).pipe( tap(([filter,… Read More rxjs using combineLatest to filter data stream – stream data is empty when it should not be