vue-supply icon indicating copy to clipboard operation
vue-supply copied to clipboard

Apollo + Vue + Vuex

Open arboleya opened this issue 7 years ago • 2 comments

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 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

arboleya avatar Apr 23 '17 19:04 arboleya

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.

SebT avatar Jul 21 '17 14:07 SebT

some boilerplate with vue, vuex, apollo?

vladislavmega avatar Jan 03 '18 14:01 vladislavmega