Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect concurrency and retry behavior #517

Open
sagdeev opened this issue Oct 23, 2024 · 0 comments
Open

Incorrect concurrency and retry behavior #517

sagdeev opened this issue Oct 23, 2024 · 0 comments

Comments

@sagdeev
Copy link

sagdeev commented Oct 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant