You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Note: This is technically part of the AbortController spec. React Native currently uses https://github.com/mysticatea/abort-controller so the change will need to be made there I think.
Activity
[-]Use DOMException to throw appropriate errors[/-][+]Use DOMException to throw errors[/+]tom-sherman commentedon May 31, 2022
Related: node-fetch/node-fetch#1519
Note: This is technically part of the AbortController spec. React Native currently uses https://github.com/mysticatea/abort-controller so the change will need to be made there I think.