Skip to content

An infinite pending state occurs if retry is used with a filter and the contract does not match. #546

@sagdeev

Description

@sagdeev

Hi! I found an issue with infinite pending.

If a retry has a filter and the contract does not pass, it gets stuck in the pending state and neither failure nor finished is triggered.

retry(query, {
  times: 1,
  delay: 100,
  filter: isNetworkError,
});

This issue did not reproduce on version 0.12.2

https://stackblitz.com/edit/vitejs-vite-4w8kw1os?file=src%2FApp.tsx

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