Skip to content
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

Remove reference to __v_ prefix #1046

Open
matthew-white opened this issue Oct 29, 2024 · 0 comments
Open

Remove reference to __v_ prefix #1046

matthew-white opened this issue Oct 29, 2024 · 0 comments
Labels
refactor Improves code without altering behavior

Comments

@matthew-white
Copy link
Member

As of #1024, the UserPreferences object creates a proxy around a shallow reactive object whereby the proxy gates access to the reactive object's properties. If something tries to read a property that isn't associated with a known user preference, the proxy throws an error. However, Vue seems to be trying to read properties that start with __v_. That seems to be something internal to Vue, not part of the Vue API. For now, the UserPreferences proxy explicitly allows __v_ properties to be read. However, since __v_ is undocumented, it'd be ideal if we could find a way to avoid this reference to it.

@matthew-white matthew-white added the refactor Improves code without altering behavior label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Improves code without altering behavior
Projects
None yet
Development

No branches or pull requests

1 participant