I have the following scenario:
export default {
name: 'Test',
subscriptions () {
return {
test: this.project.test
}
},
computed: {
project () { return this.$store.getters['project/project'] }
}
}
In this case, I have a store which produces the project object (not observable) with a test property (observable).
The problem is that if project changes, the subscription for test doesn't update to the new project.test -- so subsequent updates from the new project's test observable are not observed by the component.
How can this be addressed?
I have the following scenario:
In this case, I have a store which produces the
projectobject (not observable) with atestproperty (observable).The problem is that if
projectchanges, the subscription fortestdoesn't update to the newproject.test-- so subsequent updates from the new project'stestobservable are not observed by the component.How can this be addressed?