fix(nuxt): respect dedupe option in useFetch (#25815)

This commit is contained in:
Miha Sedej 2024-02-16 13:14:45 +01:00 committed by GitHub
parent 599081eda2
commit 3d5c845cb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -126,6 +126,7 @@ export function useFetch<
immediate,
getCachedData,
deep,
dedupe,
...fetchOptions
} = opts
@ -144,6 +145,7 @@ export function useFetch<
immediate,
getCachedData,
deep,
dedupe,
watch: watch === false ? [] : [_fetchOptions, _request, ...(watch || [])]
}