Skip to content

Thrown errors are cached and re-thrown rather than retrying #662

@onionhammer

Description

@onionhammer

Describe the bug
Relating to this comment, when retry failed due to error it appears that the error is being cached forever and rethrown every time the query itself is retried (not the internal retry logic)

#638 (comment)

To Reproduce
Steps to reproduce the behavior:

  1. Create a global retry handler that returns false if there is an err argument
  2. After the error is thrown, handle it with an error boundary so the next time the query is run the query should succeed

Expected behavior
The query should re-run and no error should occur

What actually happens
the error is cached and rethrown

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions