Skip to content

retrying the request, and canceling the current one if it's in progress. #2

@sorahn

Description

@sorahn

I have a class component that allows you to click a 'retry' button, and when you do that it also aborts the existing request. Would that work with this hook?

I was just about to sit down and puzzle together a hook for this, and when googling I came across your blog post.

Here's what my component looks like currently: https://gist.github.com/sorahn/bb244c2569c8a2614cc49a180b4b3f37

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions