mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(nuxt): respect dedupe
option in useFetch
(#25815)
This commit is contained in:
parent
599081eda2
commit
3d5c845cb2
@ -126,6 +126,7 @@ export function useFetch<
|
|||||||
immediate,
|
immediate,
|
||||||
getCachedData,
|
getCachedData,
|
||||||
deep,
|
deep,
|
||||||
|
dedupe,
|
||||||
...fetchOptions
|
...fetchOptions
|
||||||
} = opts
|
} = opts
|
||||||
|
|
||||||
@ -144,6 +145,7 @@ export function useFetch<
|
|||||||
immediate,
|
immediate,
|
||||||
getCachedData,
|
getCachedData,
|
||||||
deep,
|
deep,
|
||||||
|
dedupe,
|
||||||
watch: watch === false ? [] : [_fetchOptions, _request, ...(watch || [])]
|
watch: watch === false ? [] : [_fetchOptions, _request, ...(watch || [])]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user