vue-router-best-practices▌
hyf0/vue-skills · updated Apr 8, 2026
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 guidance on beforeRouteEnter guard limitations, component instance access, and param-triggered navigation b
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
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.6★★★★★67 reviews- ★★★★★Ren Jain· Dec 28, 2024
Keeps context tight: vue-router-best-practices is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Anika Johnson· Dec 20, 2024
Solid pick for teams standardizing on skills: vue-router-best-practices is focused, and the summary matches what you get after install.
- ★★★★★Ren Iyer· Dec 16, 2024
vue-router-best-practices is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Noor Jain· Dec 16, 2024
Solid pick for teams standardizing on skills: vue-router-best-practices is focused, and the summary matches what you get after install.
- ★★★★★Aarav Malhotra· Dec 8, 2024
vue-router-best-practices has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Emma Dixit· Dec 8, 2024
We added vue-router-best-practices from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Sophia Martinez· Dec 4, 2024
vue-router-best-practices fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Sophia Garcia· Nov 27, 2024
vue-router-best-practices fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Noor Kapoor· Nov 27, 2024
Solid pick for teams standardizing on skills: vue-router-best-practices is focused, and the summary matches what you get after install.
- ★★★★★Aarav Jain· Nov 23, 2024
vue-router-best-practices has been reliable in day-to-day use. Documentation quality is above average for community skills.
showing 1-10 of 67