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

Commit

Permalink
docs: add missing initialCache to UseFetchOptions (#5908)
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianGlowala committed Jul 14, 2022
1 parent df04a66 commit be8b6b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/content/3.api/1.composables/use-fetch.md
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

0 comments on commit be8b6b6

Please sign in to comment.