Skip to content

call action from another store #14074

Discussion options

You must be logged in to vote

You haven't shared important details like which state management library you are using, Vuex or Pinia. I'm guessing it's Vuex, and if that's the case, you need to call it with the root parameter set to true: dispatch('anotherModule/anotherAction', {}, { root:true }).

https://stackoverflow.com/questions/42984132/is-there-a-way-to-dispatch-actions-between-two-namespaced-vuex-modules

But, what it's more important, this is not Quasar related, so next time try to post it to relevant repository.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@josejachuf
Comment options

Answer selected by josejachuf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants