How can I start another request after AbortController.abort()?

You can’t.

An AbortController or its signal can not be reused nor reseted. If you need to “reset” it, you have to create a new AbortController instance and use that instead.

I think this is by design. Otherwise it could get messy e.g. if you hand over the controller or signal to some external library and suddenly they could remotely un-abort your internal state.

Leave a Comment

tech