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

Commit be8b6b6

Browse files
docs: add missing initialCache to UseFetchOptions (#5908)
1 parent df04a66 commit be8b6b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/content/3.api/1.composables/use-fetch.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ type UseFetchOptions = {
2323
transform?: (input: DataT) => DataT
2424
pick?: string[]
2525
watch?: WatchSource[]
26+
initialCache?: boolean
2627
}
2728

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

0 commit comments

Comments
 (0)