This package has been deprecated

Author message:

renamed to `vue-hubs`

vue3-hub
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

lines of code that can replace vuex/pinia

usage

import createHub from 'vue3-hub';

const hub = createHub( {
    data: {
        bar: 'your data'
    },
    computed: {
        foo() { return this.bar + 'ready' }
    },
    created() {
        this.bar += ' is '
    },
    methods: {
        hello() {
            console.log(this.foo)
        }
    }
})


hub.hello()


// hub is reactive, and can be used in <template>.

export default hub

Readme

Keywords

none

Package Sidebar

Install

npm i vue3-hub

Weekly Downloads

5

Version

1.0.3

License

MIT

Unpacked Size

1.56 kB

Total Files

4

Last publish

Collaborators

  • logaxn