I always put functions that calls API in the Vuex actions. But my colleague use other approach. He's organize API calls in classes - one class for each entity and each API call is a static function. I am honestly confused, cause i dont know what is better. In my opinion, Vuex approach provide a good structure kind state-action-mutation and i see no reason to refuse it. But what do you think?
#vue-js #javascript