-
-
Notifications
You must be signed in to change notification settings - Fork 118
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Clear and concise description of the problem
Prevent auto-unwrap refs in <template>
https://vuejs.org/guide/essentials/reactivity-fundamentals.html#caveat-when-unwrapping-in-templates
Suggested solution
-
In development mode, inline template is disabled. Simply replace
$setupwith_ctx._.setupState.__v_raw. -
In production mode, there's no
$setup. The Vue compiler attachesunref()or.valuedirectly. I'm unsure about this situation unless we analyze all variables in<script setup>like the Vue compiler does.
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request