mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
docs: add missing initialCache
to UseFetchOptions
(#5908)
This commit is contained in:
parent
df04a665ce
commit
be8b6b6d48
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user