0.4.0 • Published 2 years ago

@otools/vuex-hooks v0.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@otools/vuex-hooks

vue mapper hooks, you can use mapper functions in vue SFC easily

Install

npm install @otools/vuex-hooks

Usage

<script setup>
import { useState, useActions, useGetters } from '@otools/vuex-hooks'

const storeState = useState(nameSpace, [key1, key2])
const storeActions = useActions(nameSpace, [key1, key2])
const storeGetters = useGetters(nameSpace, [key1, key2])

// ...
</script>