Small Vue plugin for actions waiting
npm i @vasiliyrusin/v-wait
import store from "@/store";
import Loader from "@vasiliyrusin/v-wait";
Vue.use(Loader, { store });
computed: {
isLoading () {
return this.$wait(`ACTION_NAME`) ||
this.$wait(`path/to/namespaced/module/ACTION_NAME`);
}
}