onSearchInput () {
  clearTimeout(this.searchDebounce)
  this.searchDebounce = setTimeout(async () => {
    this.searchOffset = 0
    this.searchResults = await this.search()
  }, 100)
}
/** Debounce search input by 100 ms */
Debounce search input by 100 ms
Debounce search input by 100 ms
onSearchInput () {
  clearTimeout(this.searchDebounce)
  this.searchDebounce = setTimeout(async () => {
    this.searchOffset = 0
    this.searchResults = await this.search()
  }, 100)
}
onSearchInput ( ) { clearTimeout ( this . searchDebounce ) this . searchDebounce = setTimeout ( async ( ) => { this . searchOffset = 0 this . searchResults = await this . search ( ) } , 100 ) }
Debounce search input by 100 ms
Debounce search input by 100 ms