Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A Vue debounce example leveraging Lodash
<div class="col-md-6 vertical-center" v-for="(user, index) in users" :key="index">
<input type="text" @input="updateUsername(user)" class="form-control" v-model="">
export default {
data() {
return {
users:[ {
methods: {
updateUsername: _.debounce((user) => {
axios.patch(`/api/user/${}`, user).then((res) => {
}, 2000),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.