Created
June 19, 2019 11:50
-
-
Save dewdad/b59a4db7a9195c5de5715b81b7dc15c6 to your computer and use it in GitHub Desktop.
Watch nested data from vuex store state
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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