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, infinite redirect loops, and param-change detection Addresses route-lifecycle gotchas like stale data when navigating between same routes and event listener cleanup on component unmount Includes production SPA setup guidance and component instance access patterns in beforeRouteEnter guards

INSTALLATION
npx skills add https://github.com/antfu/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