Skip to content

Incorrect concurrency and retry behavior #517

@sagdeev

Description

@sagdeev

Hi! I have a problem with the retry and concurrency operators working together. I use debounce in input to make a request, but sometimes we log errors due to an abortion request.

I found a solution, but there was a problem with it too: errorType does not contain the type "ABORT".

concurrency(query, {
  strategy: "TAKE_LATEST",
});

retry(query, {
  times: 3,
  delay: 100,
  filter: ({ error }) => error.errorType !== "ABORT", // ts error here
  otherwise,
});

Reproduce

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions