[Vuejs]-Injected value is undefined

0👍

I’m assuming you’re sending the data from parent to child. If you want to do the opposite, I recommend using a store structure like pinia. Provide/inject structure exists to provide data flow from parent to child. In the code you shared, the provider component parent and the component child that is the injector play smoothly.

Leave a comment