• Skip to primary navigation
  • Skip to content
  • Skip to footer
Never test
  • About
  • Categories
  • Tags
    Vuex에서 다른 모듈의 action 호출하기
    1. Home
    2. /
    3. It
    4. /
    5. Vuex에서 다른 모듈의 action 호출하기
    YoungSeon.Ahn

    YoungSeon.Ahn

    I am an ordinary person.

    • S.Korea
    • Twitter
    • Facebook
    • GitHub
    • Resume
    • Email

    Vuex에서 다른 모듈의 action 호출하기

    less than 1 minute read

    dispatch를 쓰면 된다.

    const callActionInOtherModule = async (store, { payload }) => {
      try {
        store.dispatch("moduleB/actionName", { payload }, { root: true });
      } catch (e) {
        console.error(e);
      }
    };
    

    { root: true }를 꼭 넣어야 한다.

    Tags: JavaScript, Vue.js, Vuex

    Categories: IT

    Updated: September 22, 2020

    Share on

    Twitter Facebook LinkedIn
    Previous Next

    Leave a comment

    You may also enjoy

    SNI

    less than 1 minute read

    나는 지금까지 SNI(server name indicator) 에 대해 어렴풋하게나마 알고 있는줄 알았다. 그런데 aws를 사용하다 보니, 내가 sni에 대해 잘못 이해하고 있었다는 사실을 깨달았다.

    SNI

    1 minute read

    Until recently, I thought I had a rough understanding of SNI (Server Name Indication). However, while working with AWS, I realized that my understanding had ...

    import 한 줄이 e2e test 를 깨뜨리다

    4 minute read

    기술 스택

    e2e exposed an init order race

    5 minute read

    Tech stack

    • Follow:
    • Twitter
    • Facebook
    • GitHub
    • Feed
    © 2026 Never test. Powered by Jekyll & Minimal Mistakes.