What it does
A Cursor rules file for state management in Vue 3 with Pinia and TypeScript. It explains what belongs in a component, in Pinia, in the route or in server state, and asks for setup stores, one store per domain, pure getters and actions that handle writes and side effects.
Use cases
- 01Decide if state belongs in a component or a store
- 02Create a cart store with getters and actions
- 03Keep server data out of Pinia unless it is a draft