
Vue Router Best Practices
Catalog skill for Vue Router 4 that indexes fixes for guards, params, and route lifecycle gotchas.
- CCM score
- 40 of 100
- skills.sh installs
- 2.5K
- GitHub stars
- 3.4K
- last updated
- Jul 14, 2026
Own this skill? Claim it
What it does
- Covers Vue Router 4 patterns across navigation guards, route parameters, and route-component lifecycle interactions
- Indexes reference notes for same-route param changes,
beforeRouteEnterinstance access, and unawaited guard API calls - Flags redirect loops and the deprecated
next()guard signature, with a reference note for each - Designed for Vue single-page applications that need guidance on routing behavior and cleanup after unmount
Install
$ npx -y skills add vuejs-ai/skills --skill vue-router-best-practices -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Vue Router best practices, common gotchas, and navigation patterns.
Navigation Guards
- Navigating between same route with different params → See router-beforeenter-no-param-trigger
- Accessing component instance in beforeRouteEnter guard → See router-beforerouteenter-no-this
- Navigation guard making API calls without awaiting → See router-guard-async-await-pattern
- Users trapped in infinite redirect loops → See router-navigation-guard-infinite-loop
- Navigation guard using deprecated next() function → See router-navigation-guard-next-deprecated
Route Lifecycle
- Stale data when navigating between same route → See router-param-change-no-lifecycle
- Event listeners persisting after component unmounts → See router-simple-routing-cleanup
Details
- Repository
- github.com/vuejs-ai/skills
- Categories
- Frontend & UI Code, Technical Documentation
- First seen
- May 16, 2026
More from vuejs-ai/skills
All 8Similar to Vue Router Best Practices
More Frontend & UI Code
shadcnvercel-labs/json-render2.5K installsPre-built shadcn/ui components for json-render. Use when working with @json-render/shadcn, adding standard UI components to a catalog, or building web UIs with
mapbox-style-patternsmapbox/mapbox-agent-skills2.5K installsCommon style patterns, layer configurations, and recipes for typical mapping scenarios including restaurant finders, real estate, data visualization, navigation
nuqspproenca/dot-skills2.5K installsnuqs (type-safe URL query state) best practices for Next.js and other React frameworks. This skill should be used when writing, reviewing, or refactoring code t
clone-websitejulianromli/ai-skills2.4K installsReverse-engineer and clone one or more websites in one shot — extracts assets, CSS, and content section-by-section and proactively dispatches parallel builder a
chakra-ui-migratechakra-ui/chakra-ui2.4K installsMigrate Chakra UI projects from v2 to v3, covering package changes, codemods, provider setup, color mode, prop renaming, compound components, theming, recipes,
store-data-structureslobehub/lobehub2.4K installsLobeHub Zustand store data-shape patterns. Use when designing store state, list/detail splits, normalized maps, reducers, messagesMap, topicsMap, or choosing sh