Was macht vue-pinia-best-practices?
Pinia-Stores, State-Management-Muster, Store-Einrichtung und Reaktivität mit Stores.
Pinia-Stores, State-Management-Muster, Store-Einrichtung und Reaktivität mit Stores.
Diese Fertigkeit stellt Best Practices für die Verwendung von Pinia in Vue.js-Anwendungen bereit. Sie deckt die wichtigsten Aspekte der Arbeit mit Pinia-Stores ab: die Struktur von Stores, verschiedene Setups (Options- und Setup-Stores), State-Management-Muster und vor allem den korrekten Umgang mit der Reaktivität in und zwischen Stores. Der Fokus liegt auf der Vermeidung typischer Fallstricke bei der Reaktivität, wie z.B. unnötige Re-Renders oder verlorene Reaktivität bei Destrukturierung oder dem Arbeiten mit verschachtelten Objekten und Arrays. Die Richtlinien sind auf Entwickler ausgerichtet, die mit Vue 3 und der Composition API arbeiten und ihre Codebasis sauber, wartbar und performant halten möchten. Die Prinzipien sind plattformunabhängig für jede Vue-3-Umgebung mit Pinia gültig und orientieren sich an den offiziellen Pinia- und Vue-Dokumentationen.
npx skills add https://github.com/hyf0/vue-skills/tree/main/skills/vue-pinia-best-practicesInstalled? Explore more Codierung & Entwicklung skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
Pinia-Stores, State-Management-Muster, Store-Einrichtung und Reaktivität mit Stores.
This repo contains 7 individual skills — each has its own dedicated page.
Create a library-grade Vue composable that accepts maybe-reactive inputs (MaybeRef / MaybeRefOrGetter) so callers can pass a plain value, ref, or getter. Normalize inputs with toValue()/toRef() inside reactive effects (watch/watchEffect) to keep behavior predictable and reactive. Use this skill when user asks for creating adaptable or reusable composables.
MUST be used for Vue.js tasks. Strongly recommends Composition API with `<script setup>` and TypeScript as the standard approach. Covers Vue 3, SSR, Volar, vue-tsc. Load for any Vue, .vue files, Vue Router, Pinia, or Vite with Vue work. ALWAYS use Composition API unless the project explicitly requires Options API.
Vue 3 debugging and error handling for runtime errors, warnings, async failures, and SSR/hydration issues. Use when diagnosing or fixing Vue issues.
JSX syntax in Vue (e.g., class vs className, JSX plugin config).
Vue 3 Options API style (data(), methods, this context). Each reference shows Options API solution only.
Vue Router 4 patterns, navigation guards, route params, and route-component lifecycle interactions.
Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.
Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.
Control Eight Sleep pods (status, temperature, alarms, schedules).
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Create, search, and manage Bear notes via grizzly CLI.
Capture frames or clips from RTSP/ONVIF cameras.
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.