Introduction

10 lessons

Get access to the complete guide to developing and deploying fast, production-ready Pinia apps.
Buy License
7. Using `inject` and `provide` to ensure app-specific stores

Let's refactor our store to use what we just saw and bring it a bit closer to compatibility with SSR. During this exercise, we will refactor the defineStore() function from the previous exercise and rely on effectScope(), inject() provide() to make it more robust.

Eduardo

Eduardo San Martin Morote

5

Debugging stores with the Devtools

1 lessons