How can i use debounce?
tirjok opened this issue · 1 comments
tirjok commented
How can i use debounce?
pespantelis commented
You could use the debounce
package like below:
<template>
<input @input="debounce"/>
</template>
<script>
import debounce from 'debounce'
export default {
// ...
computed: {
debounce () {
return debounce(this.update, 500)
}
}
}
</script>