I have a list of cars. Each item of that list has all the information about some of the cars. Also each item is a parent component to many other components - image, price, characteristics, etc - all that info is in separate components. The information about all those cars is stored in Vuex. Now I am trying to think of a better way to pass that information to each of the list items.
- Pass all the necessary data about another car to the parent component. And then provide it to the child components.
- Each child component gets the necessary information from Vuex directly.
Vuex
is to provide globally accessible state. If you are already using Vuex, then there is no point trying to pass data between components another way. – Christlike