vuejs-ai avatar

Vue Router Best Practices

vuejs-ai/skills
1.9k

This skill provides best practices, navigation patterns, and troubleshooting guidance for Vue Router 4, tailored for Vue 3 developers. It covers topics like navigation guards, route lifecycle management, and production setup, highlighting common pitfalls and solutions. Designed for Vue 3 projects, it aims to help developers optimize routing behavior and avoid issues like infinite redirect loops and stale data.

npx skills add https://github.com/vuejs-ai/skills --skill vue-router-best-practices

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

Navigation Guards

Route Lifecycle

Setup

GitHub Owner

Owner: vuejs-ai

Files

router-beforeenter-no-param-trigger

router-beforerouteenter-no-this

router-guard-async-await-pattern

router-navigation-guard-infinite-loop

router-navigation-guard-next-deprecated

router-param-change-no-lifecycle

router-simple-routing-cleanup

router-use-vue-router-for-production

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

Route Lifecycle

Setup

More skills