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

Duplicate route definitions causes 2 Route components to be rendered. #2319

Closed
mikemurray opened this issue May 22, 2017 · 3 comments
Closed
Labels
bug For issues that describe a defect or regression in the released software
Milestone

Comments

@mikemurray
Copy link
Member

Expected behavior

Routes should be unique

Actual Behavior

Routes are not unique

screen shot 2017-05-22 at 10 50 12 am

Steps to Reproduce the Behavior

    "registry" : [ 
        {
            "route" : "/product/:handle/:variantId?",
            "name" : "product",
            "template" : "productDetailSimple",
            "workflow" : "coreProductWorkflow"
        }, 
        {
            "route" : "/product/:handle/:variantId?",
            "name" : "product",
            "template" : "productDetailSimple",
            "workflow" : "coreProductWorkflow"
        }
    ],

Versions

Node: 7.2.0
NPM: 4.0.5
Meteor Node: 4.8.2
Meteor NPM: 4.5.0
Reaction CLI: 0.8.2
Reaction: 1.2.0
Reaction branch: pr/2303
Docker: 17.03.1-ce

@mikemurray mikemurray added the bug For issues that describe a defect or regression in the released software label May 22, 2017
@mikemurray mikemurray added this to the React Router milestone May 22, 2017
@aaronjudd
Copy link
Contributor

@mikemurray @kieckhafer can you reproduce, verify the status here?

@desaawa desaawa self-assigned this Jun 21, 2017
@desaawa
Copy link
Contributor

desaawa commented Jun 22, 2017

I created a plugin with the duplicate routes above but could not get the error. Only one component renders.

@brent-hoover
Copy link
Collaborator

Closed via #2327

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug For issues that describe a defect or regression in the released software
Projects
None yet
Development

No branches or pull requests

4 participants