# Vue Pinia Best Practices

> Learn Pinia best practices, common gotchas, and state management patterns for Vue applications.

- Skill: `vuejs-ai/vue-pinia-best-practices` (Agent Skill, multi-file: 7 files)
- Install (CLI): `npx skillmds add vuejs-ai/vue-pinia-best-practices`
- Raw SKILL.md: https://api.skillmd.com/api/skills/vuejs-ai/vue-pinia-best-practices/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend, Frontend Frameworks
- Tags: Pinia, State Management, Store Patterns, Vue, Vuex Migration
- License: MIT
- Author: Vue AI (https://skillmd.com/u/vuejs-ai), verified publisher
- Updated: 2026-07-06
- Page: https://skillmd.com/skills/vuejs-ai/vue-pinia-best-practices

---


Pinia best practices, common gotchas, and state management patterns.

### Store Setup
- Getting "getActivePinia was called" error at startup → See [pinia-no-active-pinia-error](reference/pinia-no-active-pinia-error.md)
- Setup stores missing state in DevTools or SSR → See [pinia-setup-store-return-all-state](reference/pinia-setup-store-return-all-state.md)

### Reactivity
- Store destructuring stops updating UI reactively → See [pinia-store-destructuring-breaks-reactivity](reference/pinia-store-destructuring-breaks-reactivity.md)
- Store methods lose context in template calls → See [store-method-binding-parentheses](reference/store-method-binding-parentheses.md)

### State Patterns
- Filters reset on refresh or can't be shared → See [state-url-for-ephemeral-filters](reference/state-url-for-ephemeral-filters.md)
- Building production app without DevTools or conventions → See [state-use-pinia-for-large-apps](reference/state-use-pinia-for-large-apps.md)

