-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
this._vm is undefined using Vuex modules #523
Comments
Hey @D-Maurel I suggest checking approach (1) described here #91 (comment) as it will also work in any other places (not just outside vuex) |
Hey @probil
If you have any new approach, I'm interested. In the meantime, i'll try the solutions you've linked, thank you ! EDIT : I've tried putting the socket definition in a separate file, but it works, thank you ! |
Oh, I assume it's probably because of vuex 4 & vue 3. It doesn't use classes under the hood anymore. 🤔 |
@D-Maurel let's close the issue if the solution works for you |
Hi,
I can't find a way to make an emit from inside a socket action work. Here is my code
This code is located is a vuex module. When I reach the
emit
line, vue devtools tells me thatthis._vm is undefined
. Any idea ?The text was updated successfully, but these errors were encountered: