Nuxt/docs/4.examples/8.other/use-custom-fetch-composable.md
2023-04-26 12:28:19 +01:00

355 B

toc
false

Use custom fetch composable

This example shows a convenient wrapper for the useFetch composable from nuxt. It allows you to customize the fetch request with default values and user authentication token.

::sandbox{repo="nuxt/nuxt" branch="main" dir="examples/other/use-custom-fetch-composable" file="composables/useCustomFetch.ts"}