]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
chore: add todo about optional params
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 4 Aug 2020 14:22:58 +0000 (16:22 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 4 Aug 2020 14:22:58 +0000 (16:22 +0200)
src/matcher/index.ts

index 7111a18d6a054fcf68ab837f2f5655a5ea6a780b..1bb7b07a865aba93c2ab2ec631008d81c86700df 100644 (file)
@@ -228,6 +228,8 @@ export function createRouterMatcher(
         // paramsFromLocation is a new object
         paramsFromLocation(
           currentLocation.params,
+          // only keep params that exist in the resolved location
+          // TODO: only keep optional params coming from a parent record
           matcher.keys.map(k => k.name)
         ),
         location.params