Can Vuex's mutations and actions be understood as places where setter and getter are written respectively?

Can mutations and actions of

Vuex be understood as places where setter and getter are written respectively?

state: {

    todos: []
  },
  mutations: {
    SET_TODOS: (state,todos) => {
      state.todos = todos
    }
  },
  actions: {
    ...
  }
Mar.13,2021

can be understood this way in a broad sense, but sometimes it is not simple get and set,. For example, an action that acquires a time format may perform time zone conversion and format conversion. Setting a todo task may automatically add a sequence number


it can be understood as:
mutations is the setter, of Synchronize
actions to perform asynchronous operations, and actions calls mutations to get the value obtained by set asynchronous operations
getter has getters

Menu