Open
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
$setup
with_ctx._.setupState.__v_raw
. -
In production mode, there's no
$setup
. The Vue compiler attachesunref()
or.value
directly. I'm unsure about this situation unless we analyze all variables in<script setup>
like the Vue compiler d 525D oes.
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.