I'm having an issue with debounce from lodash and vue3, could you help me find the issue in this code please?
Pinia's Store
actions: {
fetchUsers(targetAppId?: string) {
this.loading = true;
AppsService.getUsers(targetAppId)
.then(response => {
this.users = response.data.users
// This statement works without debounce
debounce(() => { this.loading = false }, 1000)
})
},
}