Search code examples
javascriptreactjsxmlhttprequestfetchinternet-explorer-11

Abort Controller in IE11 doesn't work. Any way to support it


Tried using https://www.npmjs.com/package/abortcontroller-polyfill?activeTab=readme to use this controller on IE. But it does not work


Solution

  • To get window.AbortController() running in IE11, take a look at their IE11 example.

    Install:

    • promise-polyfill
    • unfetch
    • abortcontroller-polyfill

    Add the following to your work before AbortController is called.

    import 'promise-polyfill/src/polyfill';
    import 'unfetch/polyfill';
    import 'abortcontroller-polyfill';