Introduction

10 lessons

Get access to the complete guide to developing and deploying fast, production-ready Pinia apps.
Buy License
2. Creating a store from scratch

During the next few lessons we will create our own store from scratch. This will allows to understand what is needed to build a store, how to organize it and to learn a bit more about the Vue Reactivity API. During this lesson we will talk about the Reactivity API and start with a very naive implementation of a store.

Note: In Vue >=3.5.0, the reactivity system has been internally refactored, it no longer shows the issue with computed but what's said in this lesson is still valid, and the issue can still happen with other reactivity features like watch()

🧑‍💻 We will use this Vue.js SFC Playground

Eduardo

Eduardo San Martin Morote

5

Debugging stores with the Devtools

1 lessons