Nuxt/docs/4.examples/8.other/use-custom-fetch-composable.md

10 lines
355 B
Markdown
Raw Normal View History

---
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"}