mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +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,
|
||||
watch,
|
||||
initialCache,
|
||||
immediate,
|
||||
...fetchOptions
|
||||
} = opts
|
||||
|
||||
@ -78,6 +79,7 @@ export function useFetch<
|
||||
transform,
|
||||
pick,
|
||||
initialCache,
|
||||
immediate,
|
||||
watch: [
|
||||
_request,
|
||||
...(watch || [])
|
||||
|
Loading…
Reference in New Issue
Block a user