Proven Pinia Patterns - VueConf US 2023 / Adam Jahr
With Vue’s new-and-improved state management library, we gain a much more modular tool. While being more flexible and lacking the Mutations of Vuex, Pinia presents us with more opportunities to be creative (for better or worse) with our app architecture and how state management is conducted and organized within it. This talk by Vue Mastery’s own Adam Jahr explores some @posva-approved best practices and architectural design patterns to consider when using Pinia in production.
Ready to master ? With weekly Vue js tutorials on the latest topics, and exclusive content with Evan You (the creator of Vue), Vue Mastery is the ultimate learning resource for Vue developers to level-up their skills. Watch more free Vuejs tutorials 👉
0:00 Intro
3:39 When and why to use Pinia
6:45 Options vs Setup stores
11:02 Modular by design
12:35 Store-ganization
17:12 Accessing state
21:31 Mutating state
28:06 Other ways to work with Pinia