Akryum / vue-supply

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

Apollo + Vue + Vuex #5

Open arboleya opened 7 years ago

arboleya commented 7 years ago

Hi, I'm looking to integrate these things:

Is it right to assume I need to use vue-supply + vue-apollo for this? Ou just vue-supply will be enough?

I've already got vue + apollo working with vue-apollo, as a proof of concept. It all seems to work pretty well.

So the next move would be to put vuex in the middle, and by looking at some others issues I see that I'm not alone in this path. There were some suggestions here and there, and also some very basic examples in the project readme, but I couldn't get it to work yet.

It'd be nice to have a more concise clarification as well as some examples on how to combine all these amazing things together.

Thanks

SebT commented 7 years ago

Check this vue-apollo discussion out : https://github.com/Akryum/vue-apollo/issues/7.

It's bout how to integrate apollo with vue & vuex. From what I understood: vue-apollo should be used directly in "smart" components and pass the data down. Vuex would only be used for local app state management that doesn't come from graphql.

If you need to access data from graphl in the vuex store (in addition to in-component access), you would use vue-supply on top of all that.

vladislavmega commented 6 years ago

some boilerplate with vue, vuex, apollo?