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.63k stars 451 forks source link

fix: retry delay not persisting between calls #3478

Closed DoisKoh closed 8 months ago

DoisKoh commented 8 months ago

Summary

Retry delays are not actually working as specified in the docs. Currently, retry delays are not persisted between retries, resulting in exponential backoff not actually increasing the delay amount as time goes on. The linear backoff also does not currently work.

I've added a unit test for this, as well as the change for the behavior to comply with what's actually stated in the docs.

Set of changes

changeset-bot[bot] commented 8 months ago

🦋 Changeset detected

Latest commit: 0d73b93ee180bc0d3c153b5c35620ef622acfd5a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | -------------------- | ----- | | @urql/exchange-retry | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR