Function createFetchFn

  • Creates a new network fetching function, which combines an optional fetch-compatible library with optional middlware.

    Parameters

    Returns FetchFn

    Example

    const customFetch = createFetchFn(someMiddleware)
    const customFetch = createFetchFn(fetch, someMiddleware)
    const customFetch = createFetchFn(fetch, middlewareA, middlewareB)
  • Parameters

    Returns FetchFn

Generated using TypeDoc