Skip to content

VasiliyRusin/v-wait

Repository files navigation

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

About

Small Vue plugin for actions waiting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published