docs: add missing initialCache to UseFetchOptions (#5908)

This commit is contained in:
Damian 2022-07-14 23:30:05 +02:00 committed by GitHub
parent df04a665ce
commit be8b6b6d48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,7 @@ type UseFetchOptions = {
transform?: (input: DataT) => DataT
pick?: string[]
watch?: WatchSource[]
initialCache?: boolean
}
type AsyncData<DataT> = {
@ -49,6 +50,7 @@ type AsyncData<DataT> = {
* `default`: A factory function to set the default value of the data, before the async function resolves - particularly useful with the `lazy: true` option.
* `pick`: Only pick specified keys in this array from the `handler` function result.
* `watch`: watch reactive sources to auto-refresh
* `initialCache`: When set to `false`, will skip payload cache for initial fetch. (defaults to `true`)
* `transform`: A function that can be used to alter `handler` function result after resolving.
::alert{type=warning}