//ofetch-custom-instancebyclemcode

ofetch-custom-instance

Created with StackBlitz ⚡️

0
0
0
TypeScript

ofetch-custom-instance

Edit on StackBlitz ⚡️

Ofetch

Description

In this example, a custom instance of ofetch is created in the /utils directory.

This instance is made available in the application context :

  • through the plugin ~/plugins/app-fetch.ts (const { $appFetch } = useNuxtApp())

  • through the composable useAppFetch.

[beta]v0.14.0