Inject value is not updating DOM when conditional value change in template
Vue version
3.3.4
Link to minimal reproduction
Steps to reproduce
<template>
<span>
{{ balanceProvide?.areVisible ? 'valor 1' : 'valor 2' }}
{{ balanceProvide?.areVisible }}
</span>
</template>
<script setup lang="ts">
import { inject } from 'vue'
import { balanceKey } from './balance'
type iProps = {
balance?: number
}
const balanceProvide = inject(balanceKey)
defineProps<iProps>()
</script>
### What is expected?
span hide
### What is actually happening?
span is not hidding
### System Info
```shell
nioe
Any additional comments?
nope
https://vuejs.org/guide/essentials/reactivity-fundamentals.html#caveat-when-unwrapping-in-templates
Ref unwrapping in templates only applies if the ref is a top-level property in the template render context.
{{ balanceProvide?.areVisible.value ? 'valor 1' : 'valor 2' }}
or destructure injected value
const { areVisible } = inject(balanceKey)
{{ areVisible ? 'valor 1' : 'valor 2' }}