-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access plugin on Action #90
Comments
having the same problem here! |
I was able to access plugins like this: const user = this.$store.app.$api.auth.fetchUser(); |
I think this is a cause of problem: vuex-class-component/src/module.ts Line 197 in a4f1dc0
As a result To fix that we need to provide full store object from |
I've implemented a fix, you can give it a try. If all will be fine I will open PR. https://github.com/sandronimus/vuex-class-component/tree/store-fix |
Merged. Thanks 👍
|
@michaelolof Thank you! |
Hello! I am using nuxt and I can't seem to access my plugins on my action method body, am i doing something wrong??
I currently have my state set up like this:
store/index.ts
store/user.ts
plugin/storeProxies.ts
The problem is that when i call
await this.$vueStore.user.fetchLoggedUser();
on my component, i can't seem to find the app. When i access thethis
i can access the$store
but inside of it i cannot find the context. I need it to make a api call to fetch my user.Normally i would do something like
Am i missing something?? Thanks!
The text was updated successfully, but these errors were encountered: