pinia
pinia copied to clipboard
π Intuitive, type safe, light and flexible Store for Vue using the composition api with DevTools support
### What problem is this solving I actually came up with this because it is a bit annoying to add storeToRefs to each store if you want to destructuring ###...
### What problem is this solving We are currently using Vuex and are evaluating switching to Pinia. We have 10+ stores with different responsibility. Many of these stores use other...
### What problem is this solving Modifying deeply nested properties in the state. ### Proposed solution ```js // Object ...mapWritableState(useStore, { myCity: 'form.address.city', }) // Array ( outputs the latest...
This issue might be a duplicate of https://github.com/posva/pinia/issues/724 I'm trying to install Pinia via npm but get a > ERESOLVE unable to resolve dependency tree error. ### Reproduction - OS:...
### Reproduction Thank you so much for such a great state managing lib for Vue. Pinia works well with Nuxt as well. However, when I tried to use it along...
Docs Roadmap
These are the documentation sections I want to add or improve - [ ] Migrate to Vue.js theme - [x] Use a neutral font (#873) - [ ] Adapt instructions...
In the example, I kind of dislike the fact that the component can directly call `cart.state.rawItems = [];`. Just because I think that can encourage people to modify state in...
in $subscribe ,I use `console` to print the mutations and states when the states change : ```javascript store.$subscribe((mutations, state) => { console.log('states change :', mutations, state); }); ``` it works...
I have some code like this , it could output correctly when app first loaded or refresh οΌbut donβt work after HMR. ```javascript const pinia = createPinia(); pinia.use(({ store })...
Add a toast message if store with current id already exists.