Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

docs: add missing initialCache to UseFetchOptions #5908

Merged
merged 1 commit into from
Jul 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/content/3.api/1.composables/use-fetch.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ type UseFetchOptions = {
transform?: (input: DataT) => DataT
pick?: string[]
watch?: WatchSource[]
initialCache?: boolean
}

type AsyncData<DataT> = {
Expand All @@ -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}
Expand Down