react-router icon indicating copy to clipboard operation
react-router copied to clipboard

[Bug]: optional segments with dynamic segments

Open WeiShengv99 opened this issue 6 months ago • 1 comments

What version of React Router are you using?

@6.26.1

Steps to Reproduce

image

Expected Behavior

matchPath('/one/:mode?/two',`/onexmode/two`)

should return null

Actual Behavior

return matched

WeiShengv99 avatar Aug 16 '24 13:08 WeiShengv99