I’ve got this bit of code here that I’m trying to run. It SHOULD print to the console log on beforeDestroy but isn’t. I’ve set my console logs to “Preserve Log” but it isn’t printing to the console when I refresh the page to restart the app using Google Chrome.
mounted() {
this.$f7ready(() => {
unSubscribe = auth.onAuthStateChanged((user) => {
if (user) {
this.$setState({ userIsLoggedIn: true });
} else {
this.autoSignOut();
}
});
});
},
beforeDestroy() { console.log('Before Destroy'); }