Error in type as if ref was not unwrapped in <template>
when a composable is not destructured
#5314
Labels
<template>
when a composable is not destructured
#5314
Vue - Official extension or vue-tsc version
v3.0.0-alpha.4
VSCode version
1.98.2
Vue version
3.5.13
TypeScript version
5.8.2
System Info
package.json dependencies
Steps to reproduce
<script setup>
.<template>
..value
to it, but that seems not correct because then it does not work.What is expected?
Type should be the ref unwrapped in
<template>
.What is actually happening?
Type of the red is not unwrapped in
<template>
.Link to minimal reproduction
https://play.vuejs.org/#eNp9Uk1vEzEQ/SsjXxqkZPcAp3SLaFEl4AAVcPRl2cwGF69t2eMQFO1/Z+z9SqDtIcrOzJuZ53nvJG6dKw4RxVZUofHKEQSk6N5KU5bwjsKm+YnNL2lU56wneG87B623HVwVZQpS89X1XD9BDJjyNtQ/NEI/gy/yqUOaxppA0Czom8vu1SuGVeXAixlxQNg5XRNyBFBlNlsVNnVD6oA3UizDChVuc1YKKBlelWe9Yi0o8PpW7YvHYA0//5QmDgOURv/FkWJ6UmwhV1Kt1tr+/pRz5COup3w+0RP5x3BMOSkePAb0icpco9rvkYby/bfPeOTvudjZXdSMfqH4FYPVMXEcYHfR7Jj2GS6z/ZhlUWb/PdwfCU2YHpWIJmSf8VKwjOmazz19ofu6eJP7pOn5ihd68Sn5kLMTPLaT/nm+FNfSs4r8w2PGtNGwRNb8KzvvZRCwNZJBJiHZHjxylZizMcZJwDmK3kwtMMPXQ6LP0MR1suv/XmfADltl8MFbF1bjqGlQOsM4m/44Du+s1VibcQEA99ZR0xbaWod5b/7vB6aLiUfaZ0bO6GqnDnDYqJY9vBh3LAJ8QBZzCqqSwbl05mnR/wVBAEub
Any additional comments?
Not sure if this is actually an error or not. I would expect the ref to be automatically unwrapped as when you destructure the composable.
The text was updated successfully, but these errors were encountered: