Smithery Logo
MCPsSkillsDocsPricing
Login
NewFlame, an assistant that learns and improves. Available onTelegramSlack
    antfu

    vue-router-best-practices

    antfu/vue-router-best-practices
    Coding
    3,168

    About

    SKILL.md

    Install

    • Telegram
      Telegram
    • Slack
      Slack
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    • Download skill
    ├─
    ├─
    └─
    Smithery Logo

    Give agents more agency

    Resources

    DocumentationPrivacy PolicySystem Status

    Company

    PricingAboutBlog

    Connect

    © 2026 Smithery. All rights reserved.

    About

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

    SKILL.md

    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

    Setup

    • Building production single-page application → See router-use-vue-router-for-production
    Recommended Servers
    Local Model Suitability MCP
    Local Model Suitability MCP
    GroundRoute: Web Search for AI Agents across 6 Engines ($10 free credit)
    GroundRoute: Web Search for AI Agents across 6 Engines ($10 free credit)
    URL Safety Validator MCP
    URL Safety Validator MCP
    Repository
    antfu/skills
    Files