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.6k stars 448 forks source link

fix(persisted): Add missing teardown source #3312

Closed kitten closed 1 year ago

kitten commented 1 year ago

Resolves #3311

Summary

Add missing teardown support to the persistedExchange. Since the hashing function is promisified and hence deferred, initial operation reads that are cancelled (i.e. particularly in React/Preact) need to cancel the ongoing operation correctly.

Set of changes