vue-router-best-practices は何をしますか?
Vue Router 4 のパターン、ナビゲーションガード、ルートパラメータ、およびルートとコンポーネントのライフサイクル相互作用。
Vue Router 4 のパターン、ナビゲーションガード、ルートパラメータ、およびルートとコンポーネントのライフサイクル相互作用。
このスキルは、Vue Router 4 を使用した Vue.js アプリケーションにおけるルーティングのベストプラクティスを提供します。具体的には、名前付きルートの活用、watch を使ったルートパラメータのリアクティブな監視、beforeRouteUpdate や beforeRouteLeave などのナビゲーションガードの正しい使用方法、そしてコンポーネントのアンマウント/再マウントを防ぐテクニックをカバーします。開発者はこのスキルに従うことで、パラメータ変更時のデータ再取得、未保存の変更がある場合のナビゲーションブロック、非同期ルートガードの実装など、Vue Router 4 の一般的な課題を解決できます。主に Vue 3 + Vue Router 4 を対象としており、コード例や実際のシナリオに基づいた説明により、初心者から中級者の開発者が堅牢でパフォーマンスの良いルーティングロジックを構築できるようになります。
npx skills add https://github.com/hyf0/vue-skills/tree/main/skills/vue-router-best-practicesInstalled? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
Vue Router 4 のパターン、ナビゲーションガード、ルートパラメータ、およびルートとコンポーネントのライフサイクル相互作用。
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.
Pinia stores, state management patterns, store setup, and reactivity with stores.
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.