Published
- 1 min read
debounce on search vue
The solution for this is noted below
debounce on search vue
Solution
debounce(func, delay) {
let timeoutId
return (...args) => {
clearTimeout(timeoutId)
timeoutId = setTimeout(() => {
func.apply(this, args)
}, delay)
}
Try other methods by searching on the site. That is if this doesn’t work