Skip to content

Commit 1217389

Browse files
committed
switch to dynamic prop ignore-list
1 parent e96ea3a commit 1217389

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

router.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ export const exec = (url, route, matches) => {
4545
// normal/optional field:
4646
else if (val) val = decodeURIComponent(val);
4747
matches.params[param] = val;
48-
if (param != 'ref' && param != 'key' && param != 'path' && param != 'query' && param != 'params') {
49-
matches[param] = val;
50-
}
48+
if (!(param in matches)) matches[param] = val;
5149
if (rest) break;
5250
}
5351
return matches;

0 commit comments

Comments
 (0)