I base on Meteor + Vue + Vue Tracker
meteor: {
$subscribe: {
['app.company']: [],
company() {
const val = Company.findOne()
return val
},
},
watch: {
company: {
handler(val) {
console.log(val)
this.$store.commit('app/updateCompany', val)
},
immediate: true,
},
The watcher don’t work when company changed.
Please help me