Closed iJackUA closed 9 years ago
Did you call Vue.use()
? You still need to do that even if using as a mixin.
No, I do not call Vue.use()
in that case (with Vue 0.12.* it was working for sure without global Vue.use(VueAsyncData)
, but with a mixins in certain components).
But if to call Vue.use(VueAsyncData)
asyncData
became available in every Component. Why do I need to do mixins: [VueAsyncData.mixin]
on any specific component then?
Why I actually started to play with mixins
- as I saw in debugger that this mixin is being checked on the whole bunch of components on the page (also on every v-repeat
) - and I was afraid of performance penalty (but maybe I have just understood something wrong and my fears are groundless).
Ah you're right. I'll fix that in a later alpha release.
Should be fixed in 1.0.2
I came across same thing using vue-async-data. I'm using mixin, and warning still is diplaying.
Because of
install
method is not called in mixin (called only inuse
for plugins)But according to docs
it can be assigned separately to components via
mixins: [VueAsyncData.mixin],