-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Module state called twice #1058
Comments
Some suggestion. |
Also we should done this after module register. @LinusBorg ping. What do you think about this? |
But idk about should we fix second one too, or no. |
So, seems like it's not 100% fix, coz if we gonna update page with f5, then fix works as expected. But if we gonna change routes, after vue-devtools already initialized then we gonna get first call from vue-devtools, but then another call from vuex store. @Akryum vue-devtools must give priority to vuex, and should get states after vuex dynamic module initializing. |
Seems like a problem right here: So, just change order, call original before calling proxy. |
If someone also need this one, just download, recompile for yourself or jus t install extension(it's only for mozilla). |
Version
5.1.1
Browser and OS info
Any
Steps to reproduce
vuejs/vuex#1118 (comment)
There twice calls too, like in vuejs/vuex@40874d8 which fixed by @ktsn
https://github.com/vuejs/vue-devtools/blob/9630d1a8fd0a0477dbb3c3d3f1b2849d00739717/src/backend/vuex.js#L238
https://github.com/vuejs/vue-devtools/blob/9630d1a8fd0a0477dbb3c3d3f1b2849d00739717/src/backend/vuex.js#L256
What is expected?
Get state directly from vuex module state which already initialized in registerModule.
What is actually happening?
...
The text was updated successfully, but these errors were encountered: