Skip to content

Consider using AbortController.signal to cancel requests #889

Open
@aryzing

Description

@aryzing

The .cancel() method to cancel requests works great, and it's a great feature to have. It's a popular convention used by many network libraries, however, a convention notheless.

It would be great to add support for an AbortController.signal created outside the generated code so as to use a native browser api rather than a convention.

As an example, react-query has started to create it's own signals in addition to still supporting the .cancel() convention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions