mglaman / conductor

A Composer user interface built using Electron.
MIT License
142 stars 12 forks source link

Vuex state reactivity issues with Project model #48

Open daggerhart opened 7 years ago

daggerhart commented 7 years ago

We're running into an issue with updating details within the activeProject state property, and having those changes cause updates within different components.

Ideally: when a a project's packages are changed the vuex state will propagate those changes through the components so that the list of project requirements are updated in the left-hand column. Currently this isn't happening.

I've attempted both using Vue.set on the activeProject, and replacing the activeProject altogether with a new instance, but the changes to not update throughout components.

I'm not sure, but it seems that vuex might not like having a constructor object as a state property. Alternatively, I may be missing something else about vuex.