Maintainable stores

16 lessons

Get access to the complete guide to developing and deploying fast, production-ready Pinia apps.
Buy License
38. Creating definePrivateState

In the next few exercises, we are going to implement some custom defineStore(). We will start with definePrivateState(), then do definePrivateStore(), and defineReadonlyState() functions. These exercises can feel particularly challenging if done in TypeScript. Feel free to use some of the forbidden as any, or @ts-ignore to make the yellow/red lines go away.

Solution

Eduardo

Eduardo San Martin Morote

5

Debugging stores with the Devtools

1 lessons