Skip to content

Commit

Permalink
fix(nuxt): respect dedupe option in useFetch (#25815)
Browse files Browse the repository at this point in the history
  • Loading branch information
tresko committed Feb 16, 2024
1 parent 599081e commit 3d5c845
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/nuxt/src/app/composables/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export function useFetch<
immediate,
getCachedData,
deep,
dedupe,
...fetchOptions
} = opts

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

Expand Down

0 comments on commit 3d5c845

Please sign in to comment.