Vue Pinia Practices

vuejs-ai/skills

Work with Pinia stores, reactive state and store setup.

Contenuto aggiornato: SKILL.md
Punteggio di qualità 78/100
npx skills add vuejs-ai/skills --skill vue-pinia-best-practices
3331Stelle198ForkUltimo push del repository

Informazioni sullo Skill

Work with Pinia stores, reactive state and store setup.

SKILL.md

Autore: vuejs-ai community · vuejs-ai/skills · MIT · SKILL.md @ 198f0cd

---
name: vue-pinia-best-practices
description: "Pinia stores, state management patterns, store setup, and reactivity with stores."
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](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)

Perché lo abbiamo scelto

A focused community guide with linked references.

A cosa serve

  • Work with Pinia stores, reactive state and store setup.

Scope and limitations

A coding agent and a relevant Vue 3 or Nuxt project. This is an early community experiment; check examples against the installed framework versions and project conventions.

This is an unofficial community project; its README notes that guidance may contain omissions or hallucinations.

Prima di usarlo

  • A coding agent and a relevant Vue 3 or Nuxt project. This is an early community experiment; check examples against the installed framework versions and project conventions.

Fonti e riferimenti

Le fonti originali sono collegate qui sotto. Gli spunti pratici sono suggerimenti editoriali di SkillHey.