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): Add missing teardown handling to ssrExchange (#3386)

authored by

Phil Pluckthun and committed by
GitHub
643f426a 307327fb

+7
+5
.changeset/old-swans-relate.md
··· 1 + --- 2 + '@urql/core': patch 3 + --- 4 + 5 + Fix missing `teardown` operation handling in the `ssrExchange`. This could lead to duplicate network operations being executed.
+2
packages/core/src/exchanges/ssr.ts
··· 222 222 ops$, 223 223 filter( 224 224 operation => 225 + operation.kind === 'teardown' || 225 226 !data[operation.key] || 226 227 !!data[operation.key]!.hasNext || 227 228 operation.context.requestPolicy === 'network-only' ··· 236 237 ops$, 237 238 filter( 238 239 operation => 240 + operation.kind !== 'teardown' && 239 241 !!data[operation.key] && 240 242 operation.context.requestPolicy !== 'network-only' 241 243 ),