Vue Store
์ด๋ฒคํธ ์ ๋ฌ
๋๊ธฐ์ ์ด๋ฒคํธ ์ ๋ฌ
store.commit('syncFunc');
new Vuex.Store({
  state: {},
  mutations: {
    // ๋ฐ๋์ ํจ์ํ์ด์ฌ์ผ ํ๋ค.
    syncFunc: (state) => {
      /* statement */
    }
  }
});
๋น๋๊ธฐ ์ด๋ฒคํธ ์ ๋ฌ
store.dispatch('asyncFunc');
new Vuex.Store({
  state: {},
  actions: {
    // ๋ฐ๋์ ํจ์ํ์ด์ฌ์ผ ํ๋ฉฐ ํด๋ก์ ธ๋ ์ค์ฝํ์ฒด์ธ์ ๋ณด์ฅ์ด ์ด๋ ต๋ค.
    asyncFunc: (state) => {
      /* statement */
    }
  }
});
โ ์๋ช ์ฃผ๊ธฐ (Life Cycle) Directives โ