Not Apparent in .15... Where to dispatch store actions on app load?



  • In my old .14 quasar app I would add this to my main.js:

    created: function() {
        	this.$store.dispatch('loadOrders')
    }
    

    But I don’t see how/where to dispatch that action anymore because I can’t find anywhere that Vue is instantiated like the main.js did. What am I missing?



  • Got this figured out…

    In the App.vue just add like this:

    export default {
      name: 'App',
      created: function() {
        	this.$store.dispatch('loadOrders')
    	}
    }