Skip to content

Commit

Permalink
docs: fix defaults in custom fetch example (#20898)
Browse files Browse the repository at this point in the history
  • Loading branch information
ExEr7um committed May 16, 2023
1 parent 53bd8a4 commit 83cb5d6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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)
}

0 comments on commit 83cb5d6

Please sign in to comment.