What version of React Router are you using?
v6
Steps to Reproduce
If I have a route /:id
Expected Behavior
Its not possible for the component assigned to render with id as undefined
Actual Behavior
But since this PR was merged, id is typed as string | undefined
#8019 (comment)
This is breaking a fair few things for us, and AFAIK its not possible to have optional parameters in V6 so the undefined type here isn't correct ?