urql-graphql / urql

The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
https://urql.dev/goto/docs
MIT License
8.61k stars 449 forks source link

fix(retry): Reset delay/count state if an operation succeeds #3229

Closed kitten closed 1 year ago

kitten commented 1 year ago

Resolves #3220

Summary

This resets operations’ delay and count states if they succeed. This may be important to recover from failing subscriptions, since a new result should be able to restore the retry state to where it was before the subscription failed.

Set of changes