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
Add missing takeUntil teardown source to persistedExchange
Resolves #3311
Summary
Add missing
teardown
support to thepersistedExchange
. 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
takeUntil
teardown source topersistedExchange