mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
docs: fix defaults in custom fetch example (#20898)
This commit is contained in:
parent
53bd8a44ec
commit
83cb5d6f54
@ -25,7 +25,7 @@ export function useCustomFetch<T> (url: string, options: UseFetchOptions<T> = {}
|
||||
}
|
||||
|
||||
// for nice deep defaults, please use unjs/defu
|
||||
const params = defu(defaults, options)
|
||||
const params = defu(options, defaults)
|
||||
|
||||
return useFetch(url, params)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user