Skip to content

beforeRouteEnter not triggered when component is reused #1322

Closed
@nirazul

Description

@nirazul

Version

2.4.0

Reproduction link

http://jsfiddle.net/yj21tp09/

Steps to reproduce

  1. Open the fiddle
  2. Switch between routes (should work)
  3. Change version to 2.4.0
  4. Switch between routes (doesn't work)

What is expected?

In older versions I was able to reuse a component with different paths. The beforeRouteEnter hook was triggered nonetheless.

What is actually happening?

In 2.4.0 this behaviour is broken. The hook isn't called anymore.


This seems to be a direct consequence of #750 as match.instances is empty for the route changes that don't work.

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