D
D
dark_king_132020-01-07 20:40:13
Vue.js
dark_king_13, 2020-01-07 20:40:13

How to pass state from one module to another in Vuex?

There are 2 Vuex modules and in one there are states that I need in another module, how can I transfer them there?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2020-01-07
@dark_king_13

Why and in what form are they needed?
In any case, in the context of actions and getters there are rootState and rootGetters, for any adequate purposes this should be enough for you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question