[Vuejs]-VUEX state is not loading up if a page is visited directly

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.

Leave a comment