Back to Nuxt

NUXT_E3008

docs/errors/e3008.md

4.5.2320 B
Original Source

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

ts
const { data } = useAsyncData('users', () => $fetch('/api/users'))

::read-more{to="/docs/api/composables/use-async-data"} ::