I am in the process of integrating vuex into my project. I have familiarized myself with mutations and actions for updating state properties. My main inquiry is regarding the most secure and effective method to update state components by retrieving data from an API. For instance:
Store.js
export default {
state {
prop1:'',
prop2:''
}
actions {
//What is the best approach for calling an API here and updating the values of prop1 and prop2
}
}