mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
fix(nuxt): respect immediate option in useFetch
(#7720)
This commit is contained in:
parent
b68cf0706d
commit
2894a75bc8
@ -63,6 +63,7 @@ export function useFetch<
|
|||||||
pick,
|
pick,
|
||||||
watch,
|
watch,
|
||||||
initialCache,
|
initialCache,
|
||||||
|
immediate,
|
||||||
...fetchOptions
|
...fetchOptions
|
||||||
} = opts
|
} = opts
|
||||||
|
|
||||||
@ -78,6 +79,7 @@ export function useFetch<
|
|||||||
transform,
|
transform,
|
||||||
pick,
|
pick,
|
||||||
initialCache,
|
initialCache,
|
||||||
|
immediate,
|
||||||
watch: [
|
watch: [
|
||||||
_request,
|
_request,
|
||||||
...(watch || [])
|
...(watch || [])
|
||||||
|
Loading…
Reference in New Issue
Block a user