We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 579e719 + fd00140 commit d25297dCopy full SHA for d25297d
packages/hooks/src/useFetchs/index.ts
@@ -55,7 +55,9 @@ function useFetchs<TData, TParams>(
55
watchEffect(() => {
56
fetchs.value[cacheKey as string] = {
57
key: cacheKey,
58
+ // @ts-ignore
59
data: data?.value as UnwrapRef<TData>,
60
61
params: params.value as UnwrapRef<TParams>,
62
loading: loading.value as UnwrapRef<boolean>,
63
}
@@ -75,7 +77,9 @@ function useFetchs<TData, TParams>(
75
77
const fetchKey = keyIsStringOrNumber(key) ? key : DEFAULT_KEY
76
78
fetchs.value[fetchKey] = {
79
key: fetchKey,
80
81
data: newData as UnwrapRef<TData>,
82
83
params: newParams as UnwrapRef<TParams>,
84
loading: newLoading as UnwrapRef<boolean>,
85
0 commit comments