Skip to content

Use DOMException to throw errors #7

Open
@acostalima

Description

@acostalima

I believe React Native's environment does not provide DOMException, so we need to use a polyfill or develop our own. Check domexpection. If that's the case, for consistency's sake, the polyfill should be delivered via react-native-polyfill-globals.
Check GitHub's implementation for inspiration.

DOMException should be thrown when:

  • fetch is aborted

See: https://developers.google.com/web/updates/2017/09/abortable-fetch

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions