- Notifications
You must be signed in to change notification settings - Fork5k
fix: Script Setup Does Not Populate Name Property#2703
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
netlifybot commentedFeb 19, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
✅ Deploy Preview forvuejs ready!
To edit notification comments on pull requests, go to yourNetlify site configuration. |
yyx990803 commentedMar 13, 2024
I don't think this should be added because the inference is an internal mechanism. Can you clarify your use case here? |
incutonez commentedMar 13, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Absolutely! I use script setup, and I need to be able to reference the name of the component programmatically... according to the docs, I should be able to use |
flogehring commentedJul 10, 2024
What are you doing with the name? |
incutonez commentedJul 11, 2024
For display purposes, retrieving it for an |
Uh oh!
There was an error while loading.Please reload this page.
#10348:
nameproperty in script setupDescription of Problem
In
script setup, thenameproperty does not get created, perhere.Proposed Solution
In order to help clarify what can be used, it makes sense to add a reference to
__nameto help devs that need access to the component's name inscript setup.Additional Information
Original PR that introduced
__name