diff --git a/examples/other/use-custom-fetch-composable/composables/useCustomFetch.ts b/examples/other/use-custom-fetch-composable/composables/useCustomFetch.ts index 2464b3cd45ff..db9e572744e0 100644 --- a/examples/other/use-custom-fetch-composable/composables/useCustomFetch.ts +++ b/examples/other/use-custom-fetch-composable/composables/useCustomFetch.ts @@ -25,7 +25,7 @@ export function useCustomFetch (url: string, options: UseFetchOptions = {} } // for nice deep defaults, please use unjs/defu - const params = defu(defaults, options) + const params = defu(options, defaults) return useFetch(url, params) }