Created
January 18, 2019 16:13
-
-
Save privatenumber/10f3b840769bc2d17dad8d1cb344eb9c to your computer and use it in GitHub Desktop.
Vue lifecycle tap
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
window.VueLifecycleTap = ['beforeCreate', 'created', 'beforeMount', 'mounted', 'beforeUpdate', 'updated', 'beforeDestroy', 'destroyed'].reduce((agg, curr) => { | |
agg[curr] = function() { | |
console.log(`uid: ${this._uid} -`, curr); | |
}; | |
return agg; | |
}, {}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment