I was doing my own project(for study) and I've almost done with it. So me and my senior did code review together but seems like I did wrong in my vuex code. I wrote state(to get the state data) and got 'em in getters. then setters(to set the changed data and send it to mutation purpose) in actions() following vue official doc. but my Senior said I shouldn't write that way because actions is only for async....... This is where i'm lost. so basically, our company's large app(yet, it's a prototype written by my Senior only) doesn't event have a dot in vuex actions()....
Since we are Koreans, and it's our first time to write in vue, so kind of difficult to fully understand what's written in vue official doc, so we googled a lot then ended up having zero conclusion. most of korean developers wrote example codes just like my Senior did.. Could anyone please explain when to use mutations and actions for getters and setters clearly..? I mean, i thought they're doc and other posts are quite clear, but from Korean developers' blog posts.... I'm lost.
doc I've followed: https://vuex.vuejs.org/guide/actions.html