---
title: "NUXT_E3009"
description: "useAsyncData 的处理函数必须是一个函数。"
canonical_url: "https://nuxt.zhcndoc.com/docs/4.x/errors/e3009"
---
# E3009

调用 `useAsyncData()` 时没有传入处理函数。处理函数负责执行获取并返回数据，因此不能省略，也不能使用其他类型。

## 分辨率

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

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


## Sitemap

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