You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you import and log the store on app/auth/components/main.vue, the output is the store object. But, if you make this component eager and run de test again, the output will be undefined.
I belive that the problem is caused by an circular dependency:
In my specific case, a need to use the store inside de vue-routerbeforeRouteEnter guard to access some info in the store. Inside this guard, this.$route will not be available, because the component instance has no created yet.
The text was updated successfully, but these errors were encountered:
The problems only happens on eager components.
For example:
If you
import
and log the store onapp/auth/components/main.vue
, the output is the store object. But, if you make this component eager and run de test again, the output will be undefined.I belive that the problem is caused by an circular dependency:
store/index -> store/modules -> app/index -> app/routes -> app/auth/index -> app/auth/routes -> app/auth/components/main -> src/store
In my specific case, a need to use the store inside de
vue-router
beforeRouteEnter
guard to access some info in the store. Inside this guard,this.$route
will not be available, because the component instance has no created yet.The text was updated successfully, but these errors were encountered: