How to return Promises from Vuex actions

Vuex actions are asynchronous. So you are calling actions from your Vue component there should be a way to to know that the action you called , is completed successfully or not. So, the best way to do is, wrap your action around promises

I have the following code in my store.js file

In this example, I am calling getProductTable action in my ProductTable.vue file