@otools/vuex-hooks
v0.4.0
Published
vue mapper hooks, you can use mapper in vue SFC easily
Downloads
2
Readme
@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>