Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

fix(nuxt): respect immediate option in useFetch #7720

Merged
merged 1 commit into from Sep 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/nuxt/src/app/composables/fetch.ts
Expand Up @@ -63,6 +63,7 @@ export function useFetch<
pick,
watch,
initialCache,
immediate,
...fetchOptions
} = opts

Expand All @@ -78,6 +79,7 @@ export function useFetch<
transform,
pick,
initialCache,
immediate,
watch: [
_request,
...(watch || [])
Expand Down