1.1.1 • Published 2 years ago
@jswork/pinia-state-tree v1.1.1
pinia-state-tree
Pinia state tree.
installation
npm install @jswork/pinia-state-tree
usage
import { createSSRApp, watch } from "vue";
import { createPinia } from "pinia";
import PiniaStateTree from "@jswork/pinia-state-tree";
import App from "./App.vue";
export function createApp() {
const app = createSSRApp(App);
const pinia = createPinia();
pinia.use(PiniaStateTree);
app.use(pinia);
//...
}
features
nx.$app
: app instancenx.$pin
: pinia instancenx.$get
: get state by pathnx.$set
: set state by pathnx.$state
: root state treenx.$store
: root store treenx.$query
: query store by pathnx.$call
: call store action by pathnx.$map
: map computed by path list
license
Code released under the MIT license.
1.1.1
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago