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.

(refocus) - only use the refocus-exchange in a browser env (#1430)

* only use the refocus-exchange in a browser env

* add missing semicolon

authored by

Jovi De Croock and committed by
GitHub
5da952cb 0d64f2cb

+9
+5
.changeset/afraid-lamps-provide.md
··· 1 + --- 2 + '@urql/exchange-refocus': patch 3 + --- 4 + 5 + Prevent the refocus Exchange from being used on a Node env
+4
exchanges/refocus/src/refocusExchange.ts
··· 3 3 4 4 export const refocusExchange = (): Exchange => { 5 5 return ({ client, forward }) => ops$ => { 6 + if (typeof window === 'undefined') { 7 + return forward(ops$); 8 + } 9 + 6 10 const watchedOperations = new Map<number, Operation>(); 7 11 const observedOperations = new Map<number, number>(); 8 12