Answer the question
In order to leave comments, you need to log in
How to achieve asynchrony from getter?
Hello.
I have a problem.
There is an action in which I make a request.
api.getList().then((res) => {
state.Forms = res.data
commit("createStructure");
});
computed: {
...mapGetters(["actualForms"]),
},
Answer the question
In order to leave comments, you need to log in
why is this not action? well, or let the getter return an asynchronous function.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question