
Vue Pinia Best Practices
Covers the stuff that trips up most Vue developers when they first adopt Pinia, like destructuring breaking reactivity and the dreaded "getActivePinia was called" error. Each pattern links to a specific gotcha with the fix, from setup store DevTools visibility to why your store methods need parentheses in templates. The URL state guidance is solid if you're dealing with filters that should survive page refreshes. This is less about teaching Pinia from scratch and more about skipping the Stack Overflow detours when you hit the common pain points.
- skills.sh installs
- 2.8K
- GitHub stars
- 2.7K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add hyf0/vue-skills --skill vue-pinia-best-practices --agent claude-codeInstalls into .claude/skills of the current project.
Files
Pinia best practices, common gotchas, and state management patterns.
Store Setup
- Getting "getActivePinia was called" error at startup → See pinia-no-active-pinia-error
- Setup stores missing state in DevTools or SSR → See pinia-setup-store-return-all-state
Reactivity
- Store destructuring stops updating UI reactively → See pinia-store-destructuring-breaks-reactivity
- Store methods lose context in template calls → See store-method-binding-parentheses
State Patterns
- Filters reset on refresh or can't be shared → See state-url-for-ephemeral-filters
- Building production app without DevTools or conventions → See state-use-pinia-for-large-apps
Sponsors
Promote your product hereReach 125k+ visitors monthlyPromote your product hereReach 125k+ visitors monthly
Agent CaffeineSponsoredClose your lid, come back to finished work
SnugSponsoredThe clipboard manager for the AI eraPromote your product hereReach 125k+ visitors monthly
WaxSponsoredBlock anything with supervision, without erasing your iPhonePromote your product hereReach 125k+ visitors monthly
knobsSponsoredSee your site on any phone, any day, in any language
Details
- Repository
- github.com/hyf0/vue-skills
- Category
- Frontend Development
- First seen
- May 16, 2026
More from hyf0/vue-skills
All 11Recommended
More Frontend Development1
responsive-designowl-listener/designer-skillsDesign adaptive layouts and interactions that work across all screen sizes and input methods.2.5Kskills.sh installs
2
compose-ui-testing-patternschrisbanes/skillsUse when writing or reviewing Jetpack Compose UI tests, screenshot tests, previews, semantics assertions, fake image loading, keyboard input, focus assertions, 2.5Kskills.sh installs
4
react-three-fibervercel-labs/json-renderReact Three Fiber 3D renderer for json-render. Use when working with @json-render/react-three-fiber, building 3D scenes from JSON specs, rendering meshes/lights2.4Kskills.sh installs
5
component-specowl-listener/designer-skillsWrite a detailed component specification including props, states, variants, accessibility requirements, and usage guidelines.2.4Kskills.sh installs
6
expo-react-native-typescriptmindrally/skillsExpert in Expo React Native TypeScript mobile development with best practices2.3Kskills.sh installs