Skip to main content

FetchService

Properties

(Mandatory properties are in bold)
PropertiesTypeDescription
callSagacallSaga(sagaName: string,args: any[]): void
cancelPullcancelPull(): void
constructornew FetchService<S>()
delayLoadingdelayLoading(delay_ms: number): void
deletedelete<R>(url: string,options: FetchOptions<R>): void
fetchfetch<R>(url: string,method: FetchMethod,body: unknown,options: FetchOptions<R>): void
fetchErrorfetchError(e: any): void
fetchSuccessfetchSuccess(result: any): void
getget<R>(url: string,options: FetchOptions<R>): any
patchpatch<R>(url: string,body: unknown,options: FetchOptions<R>): void
pollpoll(url: string,fixedRateInMs: number,options: FetchOptions<any>): any
pollFetchpollFetch(url: string,fixedRateInMs: number,options: FetchOptions<any>): any
postpost<R>(url: string,body: unknown,options: FetchOptions<R>): void
putput<R>(url: string,body: unknown,options: FetchOptions<R>): void
setLoadingsetLoading(loading: boolean,fetching: boolean): void
stateS
Additional properties for advanced use cases
PropertiesTypeDescription
pullTaskTask<any>