Vue Pinia Best Practices

Skill

Pinia best practices and gotchas for Vue apps: fixing the getActivePinia error, returning all state from setup stores, keeping reactivity when destructuring stores, calling store methods from templates, keeping ephemeral filters in the URL, and using Pinia in large apps.

vuejs-ai/skills · skills/vue-pinia-best-practices3.4k
README
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

Reactivity

State Patterns