Skip to content

Support abort(reason) call on AbortController. #2889

Closed
@gxtaillon

Description

@gxtaillon

Motivation

Provide accurate error message when aborting fetch programmatically without user input.

Proposed Solution

Support abort(reason) call on AbortController.

Alternatives

None known to me.

Additional Context

Currently only abort() is supported. When using abort() on Chrome, cancelled fetch() calls return AbortError: The user aborted a request.. This is confusing when triggered without user input, for instance by timeouting early, or preemptively on navigation.

Best,
gxt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions