Answer the question
In order to leave comments, you need to log in
How to properly change store in Vuex?
Hello, the question is: how to change the data in the store correctly? Let me give you an example: now I have the following line in the component:
Is it normal to do this? Or do I need to create a method in mutations specifically for this? How to do "ethically"? this.$store.state.someArray.push(this.item)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question