Consuming the store

4 lessons

Get access to the complete guide to developing and deploying fast, production-ready Pinia apps.
Buy License
21. When should we use `storeToRefs()`, `toRef()`, and `toRefs()`

In this lesson, we will cover the when, how, and the why of consuming stores within components. We will not only see the practical use cases of the store but also cover some of the edge cases to get a better understanding of how Pinia works.

Eduardo

Eduardo San Martin Morote

5

Debugging stores with the Devtools

1 lessons