Skip to content

Commit

Permalink
docs: extend description of handler param for useAsyncData composable
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKostenko committed Sep 24, 2023
1 parent 0949187 commit e9bdb47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/3.api/1.composables/use-async-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type AsyncDataRequestStatus = 'idle' | 'pending' | 'success' | 'error'
## Params
* **key**: a unique key to ensure that data fetching can be properly de-duplicated across requests. If you do not provide a key, then a key that is unique to the file name and line number of the instance of [`useAsyncData`](/docs/api/composables/use-async-data) will be generated for you.
* **handler**: an asynchronous function that returns a value
* **handler**: an asynchronous function that must return a value that should be different from `undefined` to avoid request duplication on the client side
* **options**:
* _server_: whether to fetch the data on the server (defaults to `true`)
* _lazy_: whether to resolve the async function after loading the route, instead of blocking client-side navigation (defaults to `false`)
Expand Down

0 comments on commit e9bdb47

Please sign in to comment.