Skip to content

<router-link> component is mutating a prop #2938

Closed
@guillaumeduliscouet

Description

Version

2.6.0

Reproduction link

https://codesandbox.io/embed/vue-template-hf9hq

Steps to reproduce

  • Click on 'route' link
  • Look at the console

What is expected?

In components/Parent.vue the object childRoute, that is passed as the to prop of <router-link>, should not be mutated.

What is actually happening?

It is mutated (the key parent is added to childRoute.params)

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