debounceTime in RxJS — a practical guide to RxJS debounceTime with clear examples you can reuse in real projects.
Angular Tutorial Series (67/119). Prefer one article? Read the complete Angular tutorial.
Short description
Pair with distinctUntilChanged for efficient search.
debounceTime
this.searchControl.valueChanges.pipe(
debounceTime(300),
distinctUntilChanged(),
switchMap((q) => this.api.search(q || ''))
);