We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ref
<script setup>
3.2.11
sfc.vuejs.org/
Open the reproduction link above. Open the console and check the result.
There is an imported ref variable named compRef, which is later used in the template pointing to a component.
compRef
compRef.value should be the component instance.
compRef.value
compRef.value is null.
null
See this also for comparison, in which ref variables (created in-place, not imported) are properly handled.
The text was updated successfully, but these errors were encountered:
duplicate of #4546
Sorry, something went wrong.
No branches or pull requests
Version
3.2.11
Reproduction link
sfc.vuejs.org/
Steps to reproduce
Open the reproduction link above. Open the console and check the result.
There is an imported
ref
variable namedcompRef
, which is later used in the template pointing to a component.What is expected?
compRef.value
should be the component instance.What is actually happening?
compRef.value
isnull
.See this also for comparison, in which
ref
variables (created in-place, not imported) are properly handled.The text was updated successfully, but these errors were encountered: