Open huyngo opened 7 years ago
Currently, the search trigger on every change of the input. Can we apply something like debounceTime on Rxjs to reduce number of trigger?
Something like this below code:
this.searchField.valueChanges .debounceTime(400) .distinctUntilChanged() .map( term => this.itunes.search(term)) .subscribe( value => { value.subscribe( other => console.log(other) ) });
there is a debounce mechanism in CtrList that can be controlled by setting the value of pause
pause
Currently, the search trigger on every change of the input. Can we apply something like debounceTime on Rxjs to reduce number of trigger?
Something like this below code: