---
title: useLazyAsyncData
description: This wrapper around useAsyncData triggers navigation immediately.
links:
- label: Source
icon: i-simple-icons-github
to: https://github.com/nuxt/nuxt/blob/main/packages/nuxt/src/app/composables/asyncData.ts
size: xs
---
`useLazyAsyncData` provides a wrapper around [`useAsyncData`](/docs/4.x/api/composables/use-async-data) that triggers navigation before the handler is resolved by setting the `lazy` option to `true`.
::note
By default, [`useAsyncData`](/docs/4.x/api/composables/use-async-data) blocks navigation until its async handler is resolved. `useLazyAsyncData` allows navigation to occur immediately while data fetching continues in the background.
::
## Usage
```vue [app/pages/index.vue]
Loading...
Error loading posts
{{ posts }}
```
When using `useLazyAsyncData`, navigation will occur before fetching is complete. This means you must handle `pending` and `error` states directly within your component's template.
::warning
`useLazyAsyncData` is a reserved function name transformed by the compiler, so you should not name your own function `useLazyAsyncData`.
::
## Type
```ts [Signature]
export function useLazyAsyncData (
handler: (ctx?: NuxtApp) => Promise,
options?: AsyncDataOptions,
): AsyncData
export function useLazyAsyncData (
key: string,
handler: (ctx?: NuxtApp) => Promise,
options?: AsyncDataOptions,
): AsyncData
```
`useLazyAsyncData` has the same signature as [`useAsyncData`](/docs/4.x/api/composables/use-async-data).
## Parameters
`useLazyAsyncData` accepts the same parameters as [`useAsyncData`](/docs/4.x/api/composables/use-async-data), with the `lazy` option automatically set to `true`.
:read-more{to="/docs/4.x/api/composables/use-async-data#parameters"}
## Return Values
`useLazyAsyncData` returns the same values as [`useAsyncData`](/docs/4.x/api/composables/use-async-data).
:read-more{to="/docs/4.x/api/composables/use-async-data#return-values"}
## Example
```vue [app/pages/index.vue]