Skip to content
Back to skills

Vue Router Best Practices

ASecurity

Vue Router 4 patterns, navigation guards, route params, and route-component lifecycle interactions.

  • 16 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 27, 2026
developmentgovuegitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add pleaseai/claude-code-plugins --skill vue-router-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vue Router Best Practices?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vue Router Best Practices
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pleaseai-vue-router-best-practices/badge)](https://www.skillsdirectory.com/skills/pleaseai-vue-router-best-practices)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: vue-router-best-practices
description: "Vue Router 4 patterns, navigation guards, route params, and route-component lifecycle interactions."
version: 1.0.0
license: MIT
author: github.com/vuejs-ai
---

Vue Router best practices, common gotchas, and navigation patterns.

### Navigation Guards
- Navigating between same route with different params → See [router-beforeenter-no-param-trigger](reference/router-beforeenter-no-param-trigger.md)
- Accessing component instance in beforeRouteEnter guard → See [router-beforerouteenter-no-this](reference/router-beforerouteenter-no-this.md)
- Navigation guard making API calls without awaiting → See [router-guard-async-await-pattern](reference/router-guard-async-await-pattern.md)
- Users trapped in infinite redirect loops → See [router-navigation-guard-infinite-loop](reference/router-navigation-guard-infinite-loop.md)
- Navigation guard using deprecated next() function → See [router-navigation-guard-next-deprecated](reference/router-navigation-guard-next-deprecated.md)

### Route Lifecycle
- Stale data when navigating between same route → See [router-param-change-no-lifecycle](reference/router-param-change-no-lifecycle.md)
- Event listeners persisting after component unmounts → See [router-simple-routing-cleanup](reference/router-simple-routing-cleanup.md)

### Setup
- Building production single-page application → See [router-use-vue-router-for-production](reference/router-use-vue-router-for-production.md)

Files in this skill

  • SKILL.md1.5 KB
  • reference/router-beforeenter-no-param-trigger.md4.8 KB
  • reference/router-beforerouteenter-no-this.md4.9 KB
  • reference/router-guard-async-await-pattern.md5.8 KB
  • reference/router-navigation-guard-infinite-loop.md5.4 KB
  • reference/router-navigation-guard-next-deprecated.md4.2 KB
  • reference/router-param-change-no-lifecycle.md4.9 KB
  • reference/router-simple-routing-cleanup.md5.2 KB
  • reference/router-use-vue-router-for-production.md5.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.