AbortController/AbortSignal not available?! #9867
-
Hello, I would work with abort controllers & signals for cancellation of complex tasks. I found on the NS 8.1 Announcement that the AbortController polyfill is one of the new features of that version. But after a issue on usage and some research I found a PR by @NathanWalker where he commented out the registering of that global polyfill. Any reasons why that was commented out or plans to add that again? I use NS 8.1.5 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@KG3RK3N we decided to not enable it "by default" config.plugins.unshift(
new webpack.ProvidePlugin({
AbortController: [require.resolve('@nativescript/core/abortcontroller'), 'AbortController'],
AbortSignal: [require.resolve('@nativescript/core/abortcontroller'), 'AbortSignal'],
})
); |
Beta Was this translation helpful? Give feedback.
@KG3RK3N we decided to not enable it "by default"
You can still enable it with webpack with something like this :