You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 6, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: docs/content/3.api/1.composables/use-fetch.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ type UseFetchOptions = {
23
23
transform?: (input:DataT) =>DataT
24
24
pick?:string[]
25
25
watch?:WatchSource[]
26
+
initialCache?:boolean
26
27
}
27
28
28
29
typeAsyncData<DataT> = {
@@ -49,6 +50,7 @@ type AsyncData<DataT> = {
49
50
* `default`: A factory function to set the default value of the data, before the async function resolves - particularly useful with the `lazy:true` option.
50
51
* `pick`: Only pick specified keys in this array from the `handler` function result.
51
52
* `watch`: watch reactive sources to auto-refresh
53
+
* `initialCache`: When set to `false`, will skip payload cache for initial fetch. (defaults to `true`)
52
54
* `transform`: A function that can be used to alter `handler` function result after resolving.
0 commit comments