i have a ionic/vue project which has a login screen. when i use the screen like normal
<Login/> it works fine, but when i put it in a modal i’m getting an error
TypeError: Cannot read property 'dispatch' of undefined . i assume it’s because
this maybe resolves to the screen that opened the Login vue instead of using what’s in the Vue page. anybody ever experienced this before?
When I lookup the line in question:
var dispatch = this.$store.dispatch; it has a reference to
this being the Login vue, but it cannot access
$store. Will keep trying to figure out why this is!