-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
dynamic routes that match static routes #2
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
Comments
As we discussed on IM, I'd say this is a bug in the JSX. We traverse the routes tree depth-first when looking for a route that matches. This makes it easy for people to follow when they're debugging stuff. Ideally we could have some sort of "unreachable route" warning in this scenario to stop people from shooting themselves in the foot, but I'd be ok closing this for now. |
Closing this for now since we've got a few specs going.. |
In this scenario transitioning to "new" will incorrectly match "contact" first and render. Reverse them and it'll work as expected like below:
The text was updated successfully, but these errors were encountered: