I wonder if it's possible to fetch data conditionally in global await?
<script setup>
...
const test = ref([]);
if (myCondition) {
const {
data
} = await useAsyncData('test', () => $fetch('/my/api/call'));
test.value = data.value;
}
</script>
If I write it this way, test value is not reactive and is not updated in the template