From 83cb5d6f5414378b2dbc43b2937cb4ca5edc843e Mon Sep 17 00:00:00 2001 From: Vasily Kuzin Date: Wed, 17 May 2023 01:06:28 +0300 Subject: [PATCH] docs: fix defaults in custom fetch example (#20898) --- .../use-custom-fetch-composable/composables/useCustomFetch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }