NUXT_E3009

useAsyncData handler must be a function.

E3009

useAsyncData() was called without a handler function. The handler is the function that performs the fetch and returns the data, so it cannot be omitted or of another type.

Resolution

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