Skip to content

Component beforeRouteUpdate not triggered after hmr #2500

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions