ofetch-custom-instance

Created with StackBlitz ⚡️

0
0
0
TypeScript
public

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.

v0.3.3[beta]