-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
Unable to access vuex-orm $db variable from store in nuxt #548
Comments
@flyingboy007 you seem to have User and users within a users method. Is this a typo? |
Was a typo. Sorry for that. Updated |
By way of update @flyingboy007, there is a known issue when using Vuex ORM Will keep you posted. |
@flyingboy007 #544 is fixed with Vuex ORM 0.36.1. Could you try this one and see if it fixed this one as well? |
@kiaking Great I will try and update |
Thank you for the fix. It is working now. |
@flyingboy007 Wonderful to hear that!!! Thank you for confirming 👍 |
Using nuxtjs with vuexorm & vuexorm-axios plugin.
Above all works. But in vuexorm docs it says to always fetch model from injected database instance for nuxt/ssr apps.
But if I try to access the
$db
variable fromstore
it wont work as there is no $db variable inside store.In short calling
this.$store
works. But there is no $db instance in store variable.this.$store.$db()
returningundefined
What am I doing wrong here?
The text was updated successfully, but these errors were encountered: