Function createFetchFn

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

    Example

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

    Parameters

    Returns FetchFn

  • Parameters

    Returns FetchFn

Generated using TypeDoc