[Vuejs]-Vuex: Unable to make page reactive after fetching data through axios on action

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']),
}, 
👤oznakn

Leave a comment