Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
addRandom () {
// try using pathify and direct syntax to achieve the same result
dispatch('icons/addRandom')
},
const newHandlerFunction = async (...args) => {
let data;
if (action.loader) {
await dispatch('wait/start', action.loader, { root: true });
}
try {
data = await handler(...args);
} finally {
if (action.loader) {
await dispatch('wait/end', action.loader, { root: true });
}
}
return data;
};
if (action.debounce) {
const newHandlerFunction = async (...args) => {
let data;
if (action.loader) {
await dispatch('wait/start', action.loader, { root: true });
}
try {
data = await handler(...args);
} finally {
if (action.loader) {
await dispatch('wait/end', action.loader, { root: true });
}
}
return data;
};
if (action.debounce) {