I'm trying to use useFetch
in Nuxt3, however, the responses have a weird format.
Here is the code:
<script setup>
const [{ data: organization }, { data: repos }] = await Promise.all([
useFetch('https://api.github.com/orgs/nuxt'),
useFetch('https://api.github.com/orgs/nuxt/repos'),
])
console.log('--------organization', organization)
console.log('----------repos', repos)
</script>
The _rawValue
and _value
actually contain the data I need, however, I think this should just be a simple JSON. I'm not sure why it's returning data this way