|
|
|
|
|
by alichapman
1772 days ago
|
|
I think my favourite thing about Vue 3 and the composition API is that VueX is essentially obsolete - you can manage your global state by calling real life functions. This means instead of doing `dispatch("action")` you just call `action()`. When using Typescript this is a godsend, as the action functions keep all of their type information. |
|
- full typing
- real life functions
- vue dev plugin support in store section
- mutations don't exist as separate idea
- also has api, so i wrote little plugin for state synchronization with local storage.
*Typography fix
1. https://pinia.esm.dev/