]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
chore: add todos
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 24 Jan 2020 17:20:28 +0000 (18:20 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 24 Jan 2020 17:20:28 +0000 (18:20 +0100)
src/components/Link.ts
src/router.ts

index 166b0e28f2dde025039b8ef2d1ead8908e96af6b..36f192b77fa2f89543555c85ea3bbb9e5ec98fac 100644 (file)
@@ -7,6 +7,7 @@ interface UseLinkProps {
   replace?: Ref<boolean> | boolean
 }
 
+// TODO: what should be accepted as arguments?
 export function useLink(props: UseLinkProps) {
   const router = inject('router')
 
index abbf7032c33e87276a213110ae07b7f73b848bea..e89c5ba67b846680da5e790af6c37a05d1ba8d3a 100644 (file)
@@ -126,6 +126,7 @@ export function createRouter({
     // ensure when returning that the redirectedFrom is a normalized location
   ): RouteLocationNormalized {
     currentLocation = currentLocation || currentRoute.value
+    // TODO: still return a normalized location with no matched records if no location is found
     const matchedRoute = matcher.resolve(location, currentLocation)
 
     if ('redirect' in matchedRoute) {