Reputation: 1
I have a component which is receiving data from it's Parent as a prop to list that data, now I'm fetching the data from an API and send it to the child component, now I want to fetch data once then send it to all my child component' Parents to list the same data in different views
Upvotes: 0
Views: 49
Reputation: 56
You can to try Vuex
I suggestion for you to watch documentation intro for understanding this https://vuex.vuejs.org/
And if you dont want to use outside dependency you can look : event bus pattern (but it not best solution for your case)
Upvotes: 2