Prompt Setup

Set Up a Pinia Store

Create a Pinia store with typed state, getters, and actions.

vue
Insert label Pinia Store
Prompt

Create a Pinia store using the setup syntax (defineStore with a function). Define typed reactive state, computed getters, and actions. Keep the store focused on a single domain concern and export it from stores/.

Add this to your Facet Inserts in Crystl for one-click access.

Get Crystl