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

Mutating State

In the last lesson, we looked at how we can access state from Pinia and also how we can use v-model to bind to state properties in a Pinia store. Now let’s talk about mutating state.

Mutating State

Here’s where Pinia gets a bit… controversial. Pinia allows us to mutate state in a variety of ways, letting us