mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
doc: fix useAsyncData documentation error (#3879)
This commit is contained in:
parent
e19c638b3f
commit
993bc7c8a1
@ -18,11 +18,14 @@ const {
|
|||||||
pending: Ref<boolean>,
|
pending: Ref<boolean>,
|
||||||
refresh: (force?: boolean) => Promise<void>,
|
refresh: (force?: boolean) => Promise<void>,
|
||||||
error?: any
|
error?: any
|
||||||
watch: WatchSource[]
|
|
||||||
} = useAsyncData(
|
} = useAsyncData(
|
||||||
key: string,
|
key: string,
|
||||||
handler: (ctx?: NuxtApp) => Promise<Object>,
|
handler: (ctx?: NuxtApp) => Promise<Object>,
|
||||||
options?: { lazy: boolean, server: boolean }
|
options?: {
|
||||||
|
lazy: boolean,
|
||||||
|
server: boolean,
|
||||||
|
watch: WatchSource[]
|
||||||
|
}
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user