Skip to content

AbortController/AbortSignal not available?! #9867

Answered by farfromrefug
KG3RK3N asked this question in Q&A
Discussion options

You must be logged in to vote

@KG3RK3N we decided to not enable it "by default"
You can still enable it with webpack with something like this :

config.plugins.unshift(
        new webpack.ProvidePlugin({
            AbortController: [require.resolve('@nativescript/core/abortcontroller'), 'AbortController'],
            AbortSignal: [require.resolve('@nativescript/core/abortcontroller'), 'AbortSignal'],
        })
    );

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@KG3RK3N
Comment options

Answer selected by rigor789
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants