Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(core): Improve reexecuteOperation of arbitrary operations (#3159)

authored by

Phil Pluckthun and committed by
GitHub
ac439b7c 89b7610f

+8 -1
+5
.changeset/wicked-eggs-talk.md
··· 1 + --- 2 + '@urql/core': patch 3 + --- 4 + 5 + Improve dispatching of arbitrary operations using `reexecuteOperation`
+3 -1
packages/core/src/client.ts
··· 714 714 reexecuteOperation(operation: Operation) { 715 715 // Reexecute operation only if any subscribers are still subscribed to the 716 716 // operation's exchange results 717 - if (operation.kind === 'mutation' || active.has(operation.key)) { 717 + if (operation.kind === 'teardown') { 718 + dispatchOperation(operation); 719 + } else if (operation.kind === 'mutation' || active.has(operation.key)) { 718 720 queue.push(operation); 719 721 Promise.resolve().then(dispatchOperation); 720 722 }