0👍
When the user visits any other page, the onAuthStateChanged
function gets invoked by firebase
and you’ve called store.dispatch in the onAuthStateChanged
function. You can fix this by using the proper store
variable.
- [Vuejs]-Cancel editing function doesn't work in Vue component
- [Vuejs]-Implement onscreen console log component in Vue.js app
Source:stackexchange.com