Vue Router Pitfalls

Use when code navigates or configures Vue Router: router.push with params and paths, awaiting a navigation and reading its failure (aborted, cancelled, duplicated, redirected), routes added at runtime, navigation guards (return values, redirect loops, the legacy next callback, beforeEnter limits, beforeResolve versus beforeEach), route components reused when params change, lazy-loaded route components, catch-all and history-mode fallbacks, scroll behaviour, and typed routes.

techmefr Updated

File contents

techmefr/mentis commit e2215f8e3d

Frequently asked questions

npx get-skill add techmefr/vue-router-pitfalls