Here is the code snippet that I am working with:
<template>
{{posts}}
</template>
<script>
import { computed, ref } from 'vue';
import getPosts from '../composables/getPosts.js'
import {useRoute} from 'vue-router'
export default {
setup() {
const route = useRoute();
const { posts, error, load } = getPosts();
load();
const usedTag = route.params.tag
console.log(posts)
console.log(posts.value)
return { posts, error }
}
}
</script>
<style>
</style>
https://i.sstatic.net/ny8Px.png
I encountered an issue as shown in the provided image. When I tried to access the .value property of my posts Reference object, the entire value disappeared (As evident from the console logs, where initially there was an array in my _value). Can someone help me understand what might be causing this? Your assistance is greatly appreciated!