NUXT_E3008

useAsyncData key must be a non-empty string.

E3008

useAsyncData() was called without a valid key. The first argument must be a non-empty string so Nuxt can cache and deduplicate the request across components.

Resolution

const { data } = useAsyncData('users', () => $fetch('/api/users'))
Read more in Docs > API > Composables > Use Async Data.
Was this helpful?