Skip to content

Component beforeRouteUpdate not triggered after hmr #2500

Open
@char101

Description

@char101

Reproduction

https://github.com/char101/vue1

Steps to reproduce the bug

  1. Run pnpm run dev
  2. Click button, verify that the counter is increasing
  3. Add a comment on Test.vue to trigger hmr
  4. The button is no longer working, when clicking the button for the first time, the url is updated which implies that $router.push is working, but beforeRouteUpdate is not triggered.

Expected behavior

beforeRouteUpdate should still works after hmr.

Actual behavior

beforeRouteUpdate not called after hmr.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contribution welcomeThe team would welcome a contribution from the community for this issueenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions