router icon indicating copy to clipboard operation
router copied to clipboard

🚦 The official router for Vue.js

Results 85 router issues
Sort by recently updated
recently updated
newest added

This Playground illustrates the problem: - [Playground](https://play.vuejs.org/#eNp9U8Fu2zAM/RVBFzdAbK1It4PhBtmGAtuAbkW3W7WDYzOxW1sSJDnN4PrfR0lN7G5pfTH1+Eg+klJPPyqV7DqgKc1MoWtliQHbqSUXdauktqQnhYbcwjW0Uv/5UhuLv/kzeCs7C5oMZKNlSyJMFGsPRVxwUUhhLAkAuXwRctZzQUgVsqWnSpzN5o7io01K7tyBEB/mPpG3kJLIu88jT3Wfym2FMOsMaDbCxuq6sCmxuoMjCKJMySZvzAgVEpsWIJDaDwH0v99cDLOxJVfFYEd3oVA0f66IQsbaB+s8wuiMheniXPFgoVUNNownQjKbrxsga6lL0B5x2MFydrW8wYIZQ2MKXue2qMBMcDQnGcgu3kh9yamTS2oRZHM6SVIuM6Vh2ffeR4YhY+6MecqTrLDLRIORzQ7OXNAscasgT08kiqNTGY6i0HCdoo3WYQJ0Tq3BqW7qbXJvpMCL6HfMqdtF3YD+oWyNU+cUdxIycpo3jXz85rHJSjGmguLhBH5v9g7j9Aalg94Bp0efzfUWbHBf/fwOe7SPzlaWXYPsN5y3bhid0xhonzpRouwJz6v96p9TLba/zNXegjCHppxQxxw8n1N8RJ/faH2Uu0gWPg7vJk4xPNe4zdU/cwyOl0nGhxo0V9YqkzLWCfWwTXDybGSsLpJF8o6V+CwnaAKmjddaPuI4seCk2xWSWAk7K2Vj4lzVr5X4j7j6kFwk71lTrxlmZ7UoYe9zH9sc/gJqEYgy) The bottom row is the one that isn't working correctly. This combination of options: ```js { path: '/user/', strict: true, end: false, component:...

### Reproduction https://stackblitz.com/edit/github-afjnf8?file=src%2Frouter.ts ### Steps to reproduce the bug * Run project and test the performance using `ab` or `siege` and compare the results. * I tested with the following...

enhancement

## Background Original issue: #2132. In short, the performance of adding a large number of routes is slow, and is particularly problematic with SSR. This PR explores the idea of...

## Background Original issue: #2132. In short, the performance of adding a large number of routes is slow, and is particularly problematic with SSR. This PR attempts some performance improvements....

Inspired by #2132 and #2136, I had a go at speeding up `insertMatcher()`. ### The ordering algorithm This PR changes `insertMatcher()` to use a binary search when trying to find...

My initial attempt at #2137 passed all the existing unit tests, but with hindsight it fails to take account of various important cases. This PR attempts to add test cases...

* Related #2132 This PR adds the `createRouterMatcherSortCache` function which accepts a sorted `RouterRecord` array (returned from `router.getRoutes()` and returns a map of keys and sort index. This can be...

### Reproduction https://codesandbox.io/s/epic-dew-cgwffy ### Steps to reproduce the bug 1. Click on login 2. Click on logout 3. Click on the browser back button ### Expected behavior After the router...

bug
has PR
has workaround

Fix #1850 I need to test this more as it could have other consequences. For the moment a workaround is to avoid the navigation duplication: ```js router.beforeEach((to, from) => {...