Switching to a nested route is automatically running the last commit event from parent's store
Author: farazshujaCreated Aug 6, 2019Updated Nov 12, 2024
Version
3.1.0
Reproduction link
https://codesandbox.io/s/vue-template-c2gtb
Steps to reproduce
- Open https://codesandbox.io/s/vue-template-c2gtb
- Click on 'Go to Page with nested router' link
- Click on 'commit event', it will show an alert box
- Now change the nested route by clicking 'change nested route to reporting'
What is expected?
Route changed to reporting without showing the 'hello' alert box.
What is actually happening?
Its showing the 'hello' alert box again.
One of the releated issues https://github.com/vuejs/vuex/issues/1570
Source: vuejs/vuex