Deft
Ask AI

Search

Search skills, authors and topics

vuejs-ai / skills

vue-pinia-best-practices

Patterns for clean, scalable state management in Vue apps using Pinia stores.

Install

npx skills add https://github.com/vuejs-ai/skills --skill vue-pinia-best-practices
version
1.0.0
license
MIT
author
github.com/vuejs-ai

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

Store Setup

  • Getting "getActivePinia was called" error at startup → See pinia-no-active-pinia-error [blocked]
  • Setup stores missing state in DevTools or SSR → See pinia-setup-store-return-all-state [blocked]

Reactivity

  • Store destructuring stops updating UI reactively → See pinia-store-destructuring-breaks-reactivity [blocked]
  • Store methods lose context in template calls → See store-method-binding-parentheses [blocked]

State Patterns

  • Filters reset on refresh or can't be shared → See state-url-for-ephemeral-filters [blocked]
  • Building production app without DevTools or conventions → See state-use-pinia-for-large-apps [blocked]