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

Commit

Permalink
fix(nuxt): respect immediate option in useFetch (#7720)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Sep 22, 2022
1 parent b68cf07 commit 2894a75
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit 2894a75

Please sign in to comment.