0👍
✅
You have to use computed property to update data after change. I recommend using mapState helper in these situations. See here
import { mapState } from 'vuex';
...some code here...
computed: {
...mapState(['pendingOrderCount', 'returnOrderCount', ' processedOrderCount']),
},
Source:stackexchange.com