Vue Wait screenshot

Vue Wait

Author Avatar Theme by F
Updated: 14 Sep 2021
1992 Stars

Complex Loader and Progress Management for Vue/Vuex and Nuxt Applications

Categories

Overview

Vue-wait is a library that helps manage multiple loading states on a webpage without conflicts. It uses a simple idea of managing an array or optionally, a Vuex store, with multiple loading states. The built-in loader component listens to registered loaders and immediately becomes a loading state.

Features

  • Manages multiple loading states on a webpage
  • Compatible with Vue.js (v2.0.0+) and optionally with Vuex (v2.0.0+)
  • Provides global template helpers for accessing loading states

Installation

To install vue-wait, you can use the following methods:

  • Via CLI:
npm install vue-wait
  • Via Vue UI: Go to the “Plugins” section in the Vue UI and search for “vue-wait”. Click on “Install” to add it to your project.

After installation, you can require vue-wait in your components:

For Vue 2.x:

const VueWait = require('vue-wait');
Vue.use(VueWait);

For Vue 3.x:

import { createApp } from 'vue';
import VueWait from 'vue-wait';

const app = createApp(App);
app.use(VueWait);

You can find detailed usage instructions and additional features in the complete documentation.

Summary

Vue-wait is a helpful library for managing multiple loading states on a webpage. It provides an easy-to-use solution for handling loading states without conflicts. It is compatible with Vue.js and offers additional integration with Vuex for advanced data management. The library also provides global template helpers for accessing and manipulating loading states. Overall, vue-wait is a useful tool for developers working with Vue.js and aiming to improve the user experience of their applications.