• 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

    포렌식 기법을 활용한 iOS simulator의 safari history 로그 확인

    4 minute read

    포렌식 기법을 활용한 iOS simulator의 safari history 로그 확인

    Tracing Safari Navigation History in the iOS Simulator with Forensic Techniques

    5 minute read

    Tracing Safari Navigation History in the iOS Simulator with Forensic Techniques

    아름다움의 진화

    less than 1 minute read

    공교롭게도 이 책 안에서 최근에 읽은 책 2권이 언급되었다. 진화생물학에서의 열렬한 적응주의자로서 리처드 도킨스에 대한 언급은 놀랍지 않았다. 하지만 로버트 실러에 대한 언급은 뜻밖이었다. 저자와 함께 예일대 교수를 하고 있는 이웃인지라 함께 자주 점심을 먹는다고 한다.

    The Evolution of Beauty

    1 minute read

    By coincidence, two books I had recently read were mentioned in this one. As a fervent adaptationist in evolutionary biology, Richard Dawkins’s appearance wa...

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