Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 393 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 393 Bytes

v-wait

Small Vue plugin for actions waiting

Install

npm i @vasiliyrusin/v-wait

Usage

main.ts

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`);
  }
}