Skip to content

Nested router views with same parameter key as parent should warn the user #1345

Closed
@lehni

Description

@lehni

Version

2.4.0

Reproduction link

https://jsfiddle.net/lehni/nwqjut5c/

Steps to reproduce

Click on the Visit /foo/1/bar/2 link in the example. This will render two nested views, and each view will output the parameter that received (this.id)

What is expected?

The first view should receive id=1, and the 2nd id=2, so I expect this to be printed:

View id=1
View id=2

What is actually happening?

Both views appear to receive the same parameter, the value of the last one, and instead this is printed:

View id=2
View id=2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions