Module: core/fetch
Functions
useFetch
▸ useFetch(ctx?): Object
Fetches data from API with the most relevant context:
- API endpoint
- Project ID
- Project pid
- Actor id
deprecated Use useAxios instead
Parameters
| Name | Type |
|---|---|
ctx? | any |
Returns
Object
| Name | Type |
|---|---|
deleteJSON | (url: string) => Promise<any> |
fetcher | (url: string) => Promise<any> |
getJSON | (url: string) => Promise<any> |
patchJSON | (url: string, data: any) => Promise<any> |
postJSON | (url: string, data: any, options?: any) => Promise<any> |
putJSON | (url: string, data: any) => Promise<any> |