-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
instances of classes are not displayed in data inspector #199
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
Comments
Also whenever I commit/time travel the specific mutation in vuex (devtools) it becomes a plain Object instead of the original instance of the state/data e.g.
|
I also have this behaviour when rewinding state. My state happens to be a class, but becomes a plain object; which causes a runtime exception when it attempts to call a prototype method which doesn't exist. |
Sadly this is still the same in devtools 6.0.0-beta.15. I suppose only owned keys are displayed in the data panel. When using classes, getter/setter properties are found on the object prototype. This could be mitigated by a menu entry in the 3-dots menu was added to create a global variable, similar to $0 in the DOM explorer, that you could then dump on the console. |
When using a plain object, both
name
and_name
are displayed in the data inspectorIn this case, the inherited
name
property is missing from the data inspectorFrom an implementation standpoint, this might be related to vuejs/vue/issues/3610
The text was updated successfully, but these errors were encountered: