my code is below
<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>
However, as seen in the picture. When I use the .value on my posts Reference object, my entire value disappeared (As seen in the console, where the initial console.log does indicate that there is a array in my _value. May I know what is happening? Thank you so much!
