DEV Community

Discussion on: Apollo state management in Vue application

Collapse
 
n_tepluhina profile image
Natalia Tepluhina

Thank you! Right now I would go with Apollo Client (cache disabled)+ Vuex without vue-apollo. If you wonder, how to make it all work together, I've created a small proof of concept when researching Vuex -> Apollo migration for GitLab: gitlab.com/ntepluhina/vuex-to-apollo

The repo has a detailed descriptive readme and one of the branches addresses this approach :)

Please let me know if you have any questions

Collapse
 
smolinari profile image
Scott Molinari

Hi,

Can you please elaborate on the reasoning for this and not using Apollo's client state? Wouldn't it just be a question of modularizing local state queries and mutations, similar to what would be necessary with Vuex too?

Scott

Collapse
 
dima04869562 profile image
Dima

Natalya, thanks!
This is probably the best practice ffor this moment.

Collapse
 
stefanflaschko profile image
StefanFlaschko

Unfortunately this gitlab repro is also out of date. When trying to install it with npm install, there are several errors comming up because of not existing and no longer maintained packages.