-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Allow exposing variables with a private prefix (_) #7710
Comments
fixes #16645 Using Ψ as a private prefix due to vuejs/core#7710
Have you considered using |
|
simplified: setup returns are exposed as part of "this", where also Vue's
True, would be a better way to fix your issue though if we fix that? |
Fair enough, I don't use I don't know if it's possible to make |
What problem does this feature solve?
In a component library I want to expose some refs for use by other internal components, but mark it as private for consumers of the library. The JS convention is to prefix properties like this with
_
:This works, but vue logs
Related: #4532, #5038
What does the proposed API look like?
Rename vue's internal properties to
__
instead, which is already used in a few places (__hmrId
,__asyncLoader
,__v_isVNode
,__isBuiltIn
,__isScriptSetup
)The text was updated successfully, but these errors were encountered: