Lightweight State Management For Vue 3 – v-bucket

Description:

A fast, simple, lightweight, and Vuex inspired State Management for Vue 3.0 built with composition API.

Basic Usage:

1. Import the v-bucket.

import { createBucket } from “@mediv0/v-bucket”;

2. Create your store as follows:

const bucket = createBucket({
    states: {
        // your states here
    },
    mutations: {
        // your mutations here
    },
    getters: {
        // your getters here
    },
    modules: {
        // your modules here
    }
});
export default bucket;

3. Then import your bucket.

import { createApp } from "vue";
import App from "./dev.vue";
import bucket from "./bucket/index";
createApp(App)
  .use(bucket)
  .mount("#app");

Preview:

Lightweight State Management For Vue 3 - v-bucket

Changelog:

v1.1.1 (10/14/2020)

  • fixed a bug that caused async actions not getting called in onAction hook

Download Details:

Author: mediv0

Live Demo: https://codesandbox.io/s/dank-waterfall-mrfzq

Download Link: https://github.com/mediv0/v-bucket/archive/master.zip

Official Website: https://github.com/mediv0/v-bucket

Install & Download:

# NPM
$ npm i @mediv0/v-bucket --save

You Might Be Interested In:

Add Comment