[Vuejs]-Vue 3 Props is not working on child components after binding it correctly. It returns undefined in child component

1👍

the child component is created before the api call is received, so not yet there in the created hook.
Quick fix would be to add v-if so that the child component is rendered after items are ready:

   <ListView v-if="items.length > 0" v-bind:items="items"/>

Leave a comment