pinia-best-practices.mdc 319 B

123456789
  1. ---
  2. description: Best practices for state management with Pinia
  3. globs: src/stores/*.ts
  4. alwaysApply: false
  5. ---
  6. - Use Pinia stores for global state management
  7. - Implement getters for computed state
  8. - Use actions for side effects and asynchronous operations
  9. - Utilize `defineStore` with `id` for better store organization