mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +00:00
10 lines
355 B
Markdown
10 lines
355 B
Markdown
|
---
|
||
|
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"}
|