Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: optional segments with dynamic segments #11900

Open
WeiShengv99 opened this issue Aug 16, 2024 · 1 comment
Open

[Bug]: optional segments with dynamic segments #11900

WeiShengv99 opened this issue Aug 16, 2024 · 1 comment
Labels

Comments

@WeiShengv99
Copy link

WeiShengv99 commented Aug 16, 2024

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
Copy link
Author

image
But in doc
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant