I'm a bit confused of using store (Vuex or Redux). To begin with, we all know that both were born for state management and we usually use them in case of modifying states of a component through other components.
However, according to my question, I supposed that we got component A and B. The scenario is:
While other components need to use state of B so we will store this state in store management and if B need to use
axios
, we also make it work in a store file as anaction
.Next, in case of component A, none of its states need to be set for global usage but it still needs
axios
usage, so that - we useaxios
inside component A - is a good practice?
Sorry for my bad English, I know :(