Skip to content

Instantly share code, notes, and snippets.

@dewdad
Created June 19, 2019 11:50
Show Gist options
  • Save dewdad/b59a4db7a9195c5de5715b81b7dc15c6 to your computer and use it in GitHub Desktop.
Save dewdad/b59a4db7a9195c5de5715b81b7dc15c6 to your computer and use it in GitHub Desktop.
Watch nested data from vuex store state
computed:{
storeInvalidated: get('view/invalidateStore')
},
watch: {
'storeInvalidated.meetings': {
handler(newVal, oldVal) {
if (newVal && newVal !== oldVal) {
logger.debug('meetingsInvalidated', { newVal, oldVal });
// this.initializeMeetings();
}
},
deep: true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment