react-router
react-router copied to clipboard
[Bug]: optional segments with dynamic segments
What version of React Router are you using?
@6.26.1
Steps to Reproduce
Expected Behavior
matchPath('/one/:mode?/two',`/onexmode/two`)
should return null
Actual Behavior
return matched