Skip to content

Commit daf718f

Browse files
committed
chore: add todo about optional params
1 parent 3594011 commit daf718f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/matcher/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ export function createRouterMatcher(
228228
// paramsFromLocation is a new object
229229
paramsFromLocation(
230230
currentLocation.params,
231+
// only keep params that exist in the resolved ___location
232+
// TODO: only keep optional params coming from a parent record
231233
matcher.keys.map(k => k.name)
232234
),
233235
___location.params

0 commit comments

Comments
 (0)