swagger-typescript-api icon indicating copy to clipboard operation
swagger-typescript-api copied to clipboard

Added "signal" key in fetch init object makes iOS fail (react-native)

Open mrclay opened this issue 3 years ago • 0 comments

The key is set to undefined but even the presence of the key blocks iOS from sending the request.

Workaround for this:

const api = new Api({
  customFetch: (url, init) => {
    const clonedInit = {...init};
    delete clonedInit.signal;
    return fetch(url, clonedInit);
  },
});

mrclay avatar Aug 25 '22 15:08 mrclay