I'm trying to debounce anything within an Action, it gets swallowed in one way or another...
Take this (pseudo) code:
import { debounce } from "lodash";
const actions = {
debounceSomeLogging ({ dispatch }, text) {
console.log("Outside debounced function.");
debounce(function() {
console.log("Inside debounced function.");
dispatch("doRealThing");
}, 1000);
},
doRealThing({ commit }) {
// Whatever
}
}
When I call the action, I see the Outside debounced function
, but I can not see the other logging and the other action does not get triggered.
Anyone have experience with this and can point me in the right direction?