by alichapman · 5y ago · 0 comments
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
Definitely going to use it for my future project.
https://github.com/kiaking/rfcs/blob/vuex-5/active-rfcs/0000...
I read the doc and it makes sense but once in my project, I fail to see why I would use it, and yes I use vuex.
I probably need to make a Vue3 project from scratch without vuex to get it.