Skip to main content
Version: 0.1.1

Type Alias: FetchAdapter

Imported from @react-logic/utils

FetchAdapter = (url, init) => Promise<FetchResponse>

Plug your HTTP client in here. Takes a URL and the normalised init, and returns a FetchResponse. May reject — fetchState catches and routes the error into the failed state.

Parameters

Returns

Promise<FetchResponse>