Akryum / vue-supply

Create resources that can automatically be activated and deactivated when used (like subscriptions)
159 stars 16 forks source link

Documentation for Meteor need to update #4

Closed MaksimKlepikov closed 7 years ago

MaksimKlepikov commented 7 years ago

In meteor example have missed extends: Supply If we try to use mixins: [use(Resource)]. Without this we have error

"TypeError: resource.grasp is not a function"

And we need to add this in our supply file

import VueTracker from 'vue-meteor-tracker';
Vue.use(VueTracker);

Without this we have error

"TypeError: this.$subscribe is not a function"

I spent some time to solve this problem, so I think it will be useful