[x] follows the workflow dispatch from vue component -> commit from vuex's action -> mutate the state from vuex's mutation
[ ] unit tested
Note
app-gateway-svc client is not the only client. We should be able to use different clients within Vuex's mutations property e.g. elastic-search client + app-gateway-svc client + etc.
Description
The Vue.js's idiomatic way of managing state and http requests is through vuex
actions
property.I believe the recommended workflow is the following:
getters
,mutations
,actions
.actions
property due to the following reasons:actions
can contain arbitrary asynchronous operationsmutations
property.Examples: https://vuex.vuejs.org/guide/actions.html
Story Points
5
Definitions of Done
app-gateway-svc
client if still neededdispatch
from vue component ->commit
from vuex's action -> mutate the state from vuex's mutationNote
app-gateway-svc
client is not the only client. We should be able to use different clients within Vuex'smutations
property e.g.elastic-search client
+app-gateway-svc client
+ etc.