Why does the reactive of vue not allow access to the private properties of the proxy class? #14393
Unanswered
gitboyzcf
asked this question in
Help/Questions
Replies: 1 comment
-
|
Private properties aren't supported with reactive proxies. This isn't something that can be fixed in Vue, JavaScript doesn't allow private properties to be accessed via a proxy. More generally, it is recommended to avoid using classes for reactive data. There are several GitHub issues relating to this. Two specific examples: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I access private properties in a class and use getter to obtain them, I report an error. I wonder?
Beta Was this translation helpful? Give feedback.
All reactions