1👍
What you are asking is a false dilemma. From the official documentation:
By providing the
store
option to the root instance, the store will be injected into all child components of the root and will be available on them asthis.$store
.
(emphasis mine)
Which means that sharing the store between components no matter how deep in the component tree is handled for you automatically by vue and vuex.
1👍
It’s quite opinion based question, but I would say it is much better way to use Vuex since the beginning if you know that your app can be developed into large scale.
Passing states from parent to child all the way etc is not good way, so it is better to use Vuex now and you will save a lot of time changing your app in the future when you would have no other way than vuex.