You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know why you use a "action" to commit a "mutation" in the "src/vuex-i18n-store.js". I'm not very familiar with Vuex. Are there any benefits of such a design?
The text was updated successfully, but these errors were encountered:
This is the recommended vuex flow. Components should only ever trigger actions, which in turn commit mutations to change the state. A component should not directly call a mutation and an action should not directly modify state. This helps to keep the flow of the application organized once it gets larger. Also all mutations can be inspected in the vue devtools in chrome.
I don't know why you use a "action" to commit a "mutation" in the "src/vuex-i18n-store.js". I'm not very familiar with Vuex. Are there any benefits of such a design?
The text was updated successfully, but these errors were encountered: