Akryum / vue-supply

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

Using vue-supply with Meteor without vue-ssr? #16

Open butaminas opened 6 years ago

butaminas commented 6 years ago

I've been trying to integrate vue-supply into my app for a while now but it just does not work whatever I do.

Finally, I thought I would try to reverse engineer the vue-meteor-demo app that seems to have vue-supply working. After removing all the components that I don't need, I noticed, that after I remove the meteor package akryum:vue-ssr I get an error storeOptions.supply.inject is not a function and this is the same error I get when trying to integrate vue-supply to my app as well.

Server side rendering is not important for my app at all and I don't need vue-ssr. Is there a way to use vue-supply without using the server side rendering?

Note: the main reason I want to use vue-supply on my app is so I could get collections in vuex store.

eybarta commented 5 years ago

I'm thinking of trying vue-supply for the same reason (reactive collections available through vuex store)...

have you solved this SSR issue?

I'm also looking for info for the use cases between using vue-supply vs. vue-meteor-tracker, the only advantage I see for vue-supply is the integration to vuex, is there any other points for using one over the other?

thx

butaminas commented 5 years ago

I'm thinking of trying vue-supply for the same reason (reactive collections available through vuex store)...

have you solved this SSR issue?

I'm also looking for info for the use cases between using vue-supply vs. vue-meteor-tracker, the only advantage I see for vue-supply is the integration to vuex, is there any other points for using one over the other?

thx

I ended up using vue-meteor-tracker instead. After making it work I don't see how this package could give any advantage over meteor tracker.

eybarta commented 5 years ago

Is there a way to use vue-meteor-tracker inside the store, or are you just using meteor:$subscribe... in every component you need the data?

thx