Reproduction
https://github.com/char101/vue1
Steps to reproduce the bug
- Run
pnpm run dev
- Click button, verify that the counter is increasing
- Add a comment on
Test.vue to trigger hmr
- 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
Reproduction
https://github.com/char101/vue1
Steps to reproduce the bug
pnpm run devTest.vueto trigger hmr$router.pushis working, butbeforeRouteUpdateis not triggered.Expected behavior
beforeRouteUpdate should still works after hmr.
Actual behavior
beforeRouteUpdate not called after hmr.
Additional information
No response