DEV Community


Discussion on: Vue.js Pattern for Async Requests: Using Renderless Components

maoberlehner profile image
Markus Oberlehner

Passing props to <router-view> is fine in my opinion!

Thread Thread
tiagosmartinho profile image
Tiago Martinho

ty :p

a problem occured. On some pages, the props data is expected to be an object, but on others it is an array.

I thought I'd give the property multiple types, or is there a better solution?


props: {
    data: Object | Array
Thread Thread
maoberlehner profile image