Skip to content

Commit 64643b6

Browse files
committed
warn async component in v-repeat + dynamic
1 parent 6a562c4 commit 64643b6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/directives/repeat.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,12 @@ module.exports = {
176176
var id = this.ctorGetter.call(context, context)
177177
var Ctor = this.vm.$options.components[id]
178178
_.assertAsset(Ctor, 'component', id)
179+
if (!Ctor.options) {
180+
_.warn(
181+
'Async resolution is not supported for v-repeat ' +
182+
'+ dynamic component. (component: ' + id + ')'
183+
)
184+
}
179185
return Ctor
180186
},
181187

0 commit comments

Comments
 (0)