Proven Pinia Patterns

Lessons

1. Intro

2:00

2. When to use Pinia

2:07

3. Options vs Setup Stores

2:29

4. Modular Stores

4:08

5. Accessing State

3:29

6. Mutating State

3:50

7. Pinia Plugins

6:02

Modular Stores

One of the most important features of Pinia is its modular stores. When using Pinia, we create a store focused around each logical concern of our app.

In fact, we can define as many stores as we want. Each of them should be in their own file, which will help keep our code organized and also connect each separate store to de