Skip to main content

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

NameType
ctx?any

Returns

Object

NameType
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>