1.1.1 • Published 2 years ago

@jswork/pinia-state-tree v1.1.1

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

pinia-state-tree

Pinia state tree.

Alt text

version license size download

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 instance
  • nx.$pin: pinia instance
  • nx.$get: get state by path
  • nx.$set: set state by path
  • nx.$state: root state tree
  • nx.$store: root store tree
  • nx.$query: query store by path
  • nx.$call: call store action by path
  • nx.$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