Open arboleya opened 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.
some boilerplate with vue, vuex, apollo?
Hi, I'm looking to integrate these things:
vue
vuex
apollo
Is it right to assume I need to use
vue-supply
+vue-apollo
for this? Ou justvue-supply
will be enough?I've already got
vue
+apollo
working withvue-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 projectreadme
, 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