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.

Prevent active teardown for queries on subscriptionExchange (#577)

Fix #576

authored by

Phil Plückthun and committed by
GitHub
81be6238 4bce84bc

+11 -4
+5
.changeset/sharp-students-flash.md
··· 1 + --- 2 + '@urql/core': patch 3 + --- 4 + 5 + Prevent active teardowns for queries on subscriptionExchange
+6 -4
packages/core/src/exchanges/subscription.ts
··· 85 85 complete: () => { 86 86 if (!isComplete) { 87 87 isComplete = true; 88 - client.reexecuteOperation({ 89 - ...operation, 90 - operationName: 'teardown', 91 - }); 88 + if (operation.operationName === 'subscription') { 89 + client.reexecuteOperation({ 90 + ...operation, 91 + operationName: 'teardown', 92 + }); 93 + } 92 94 93 95 complete(); 94 96 }