vue-router-best-practices

Vue Router 4 patterns, navigation guards, and route-lifecycle best practices. Covers five navigation guard patterns including async/await handling, deprecated next() function migration, and infinite redirect loop prevention Addresses route lifecycle gotchas such as stale data when navigating with param changes and event listener cleanup on unmount Includes guidance on component instance access in beforeRouteEnter guards and param-change detection across same-route navigation Provides production single-page application setup recommendations

INSTALLATION
npx skills add https://github.com/vuejs-ai/skills --skill vue-router-best-practices
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

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

Navigation Guards

Route Lifecycle

Setup

BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card