---
title: "NUXT_E3009"
description: "useAsyncData handler must be a function."
canonical_url: "https://nuxt.com/docs/4.x/errors/e3009"
---
# 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

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

<read-more to="https://nuxt.com/docs/4.x/api/composables/use-async-data">



</read-more>


## Sitemap

See the full [sitemap](https://nuxt.com/sitemap.md) for all pages.
