You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Vue Router, params are reused by name whenever possible. This is why from a typing perspective, doing router.push({ name: 'route-name' }) for a route like { name: 'route-name', path: '/route/:id' } is valid and can work depending on where you are. This feature might disappear in major versions of Vue Router so I want to try out adding a type level restriction that is opt-in here.
The text was updated successfully, but these errors were encountered:
In Vue Router, params are reused by name whenever possible. This is why from a typing perspective, doing
router.push({ name: 'route-name' })
for a route like{ name: 'route-name', path: '/route/:id' }
is valid and can work depending on where you are. This feature might disappear in major versions of Vue Router so I want to try out adding a type level restriction that is opt-in here.The text was updated successfully, but these errors were encountered: