Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 355 Bytes

use-custom-fetch-composable.md

File metadata and controls

9 lines (6 loc) · 355 Bytes
toc

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